3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array('blah' => 'bla'); $color = isset($options['color']) ?: ''; $color2 = isset($options['color']) ? $options['color'] : ''; $options['color'] = 'blue'; $color = isset($options['color']) ?: ''; $color2 = isset($options['color']) ? $options['color'] : '';

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0130.00718.43
8.3.50.0150.00722.05
8.3.40.0060.00918.54
8.3.30.0140.00018.64
8.3.20.0050.00318.60
8.3.10.0040.00421.12
8.3.00.0000.00819.68
8.2.180.0040.01416.38
8.2.170.0080.00822.96
8.2.160.0030.01020.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00421.00
8.2.110.0080.00022.27
8.2.100.0080.00417.97
8.2.90.0090.00019.17
8.2.80.0030.00519.31
8.2.70.0030.00517.50
8.2.60.0030.00618.04
8.2.50.0080.00018.07
8.2.40.0030.00518.22
8.2.30.0040.00421.29
8.2.20.0030.00617.71
8.2.10.0050.00217.64
8.2.00.0040.00417.61
8.1.280.0030.01025.92
8.1.270.0070.00023.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.57
8.1.230.0080.00420.90
8.1.220.0050.00318.77
8.1.210.0080.00018.84
8.1.200.0030.00617.35
8.1.190.0040.00417.41
8.1.180.0040.00418.10
8.1.170.0000.00818.61
8.1.160.0040.00418.98
8.1.150.0030.00618.68
8.1.140.0000.00717.35
8.1.130.0050.00317.83
8.1.120.0000.00717.34
8.1.110.0000.00717.47
8.1.100.0000.00717.48
8.1.90.0040.00417.46
8.1.80.0040.00417.36
8.1.70.0030.00317.46
8.1.60.0060.00317.51
8.1.50.0000.00717.46
8.1.40.0000.00717.55
8.1.30.0070.00017.68
8.1.20.0000.00817.66
8.1.10.0080.00017.51
8.1.00.0000.00717.42
8.0.300.0040.00419.92
8.0.290.0070.00017.15
8.0.280.0030.00318.44
8.0.270.0030.00317.24
8.0.260.0000.00816.74
8.0.250.0000.00916.98
8.0.240.0040.00416.93
8.0.230.0070.00016.97
8.0.220.0030.00516.89
8.0.210.0030.00716.79
8.0.200.0030.00316.97
8.0.190.0040.00416.95
8.0.180.0070.00016.96
8.0.170.0030.00616.93
8.0.160.0040.00416.95
8.0.150.0040.00416.82
8.0.140.0000.00916.88
8.0.130.0030.00313.29
8.0.120.0050.00316.94
8.0.110.0000.00716.79
8.0.100.0000.00816.79
8.0.90.0040.00416.73
8.0.80.0100.00616.94
8.0.70.0000.00816.78
8.0.60.0030.00316.79
8.0.50.0040.00416.75
8.0.30.0090.00917.04
8.0.20.0090.01317.40
8.0.10.0040.00416.98
8.0.00.0090.01416.73
7.4.330.0000.00616.69
7.4.320.0060.00316.41
7.4.300.0060.00016.51
7.4.290.0030.00316.59
7.4.280.0060.00016.57
7.4.270.0000.00616.45
7.4.260.0060.00013.32
7.4.250.0040.00416.37
7.4.240.0040.00416.51
7.4.230.0030.00316.64
7.4.220.0120.00616.45
7.4.210.0080.01116.56
7.4.200.0000.00716.54
7.4.190.0070.00016.77
7.4.160.0080.00816.63
7.4.150.0070.01117.40
7.4.140.0110.00617.86
7.4.130.0100.00716.48
7.4.120.0070.01116.56
7.4.110.0030.01516.64
7.4.100.0140.00316.58
7.4.90.0100.00916.31
7.4.80.0030.01319.39
7.4.70.0140.00316.52
7.4.60.0040.01316.46
7.4.50.0040.00416.55
7.4.40.0030.00722.77
7.4.30.0100.00716.50
7.4.00.0110.00614.74
7.3.330.0000.00513.16
7.3.320.0000.00613.09
7.3.310.0040.00416.32
7.3.300.0030.00316.23
7.3.290.0070.00716.29
7.3.280.0070.00916.32
7.3.270.0110.01217.40
7.3.260.0120.00618.24
7.3.250.0080.00916.30
7.3.240.0070.01016.21
7.3.230.0080.00816.39
7.3.210.0090.00616.23
7.3.200.0140.01019.39
7.3.190.0120.00916.42
7.3.180.0090.00616.27
7.3.170.0030.01316.29
7.3.160.0150.00016.54
7.3.120.0030.01414.75
7.3.10.0120.00616.21
7.3.00.0140.00615.80
7.2.330.0030.01416.41
7.2.320.0060.01316.64
7.2.310.0040.01316.80
7.2.300.0120.00416.67
7.2.290.0090.00916.42
7.2.130.0040.00716.51
7.2.120.0120.00816.12
7.2.110.0100.00516.56
7.2.100.0090.00616.05
7.2.90.0140.00416.37
7.2.80.0090.01216.30
7.2.70.0200.00416.36
7.2.60.0130.00416.31
7.2.50.0150.00416.41
7.2.40.0130.01015.91
7.2.30.0140.00316.36
7.2.20.0080.01116.41
7.2.10.0200.00516.23
7.2.00.0110.00618.06
7.1.250.0090.00615.22
7.1.100.0040.00418.08
7.1.70.0050.00217.14
7.1.60.0030.01016.88
7.1.50.0030.00716.95
7.1.40.0030.00716.55
7.1.30.0030.01016.68
7.1.20.0070.00416.64
7.1.10.0050.00516.39
7.1.00.0000.00816.57
7.0.200.0000.00716.84
7.0.190.0030.00316.48
7.0.180.0040.00416.32
7.0.170.0000.00816.18
7.0.160.0030.00316.25
7.0.150.0090.00616.05
7.0.140.0030.00516.10
7.0.130.0000.00716.44
7.0.120.0040.00416.49
7.0.110.0000.00816.41
7.0.100.0000.00816.13
7.0.90.0000.00716.57
7.0.80.0030.00716.39
7.0.70.0040.00416.25
7.0.60.0050.00316.29
7.0.50.0000.00816.35
7.0.40.0040.00414.89
7.0.30.0000.00714.89
7.0.20.0000.00714.89
7.0.10.0030.00314.89
7.0.00.0030.00514.89
5.6.300.0000.05220.64
5.6.290.0030.04020.93
5.6.280.0130.03520.86
5.6.270.0070.03620.84
5.6.260.0100.03720.95
5.6.250.0000.04420.94
5.6.240.0030.04220.82
5.6.230.0030.04920.78
5.6.220.0070.04620.84
5.6.210.0030.04120.89
5.6.200.0130.04321.00
5.6.190.0030.05020.90
5.6.180.0060.03920.97
5.6.170.0130.04621.03
5.6.160.0030.03820.79
5.6.150.0000.04521.02
5.6.140.0000.04320.75
5.6.130.0070.04620.96
5.6.120.0030.04321.00
5.6.110.0000.04520.92
5.6.100.0030.04321.00
5.6.90.0260.02920.70
5.6.80.0030.03720.24
5.6.70.0000.04020.35
5.6.60.0100.04620.36
5.6.50.0070.03820.29
5.6.40.0040.03920.29
5.6.30.0000.04820.17
5.6.20.0070.03520.18
5.6.10.0100.03220.29
5.6.00.0070.03720.15
5.5.380.0070.04017.51
5.5.370.0030.05417.40
5.5.360.0030.04117.47
5.5.350.0030.04017.48
5.5.340.0000.04118.02
5.5.330.0030.04017.97
5.5.320.0030.04218.11
5.5.310.0030.04317.96
5.5.300.0030.03717.93
5.5.290.0030.04517.91
5.5.280.0000.04418.06
5.5.270.0030.04217.99
5.5.260.0000.04617.90
5.5.250.0160.04017.82
5.5.240.0030.03917.30
5.5.230.0100.04517.49
5.5.220.0000.04317.36
5.5.210.0030.04917.39
5.5.200.0000.07617.31
5.5.190.0000.04317.37
5.5.180.0140.03917.04
5.5.160.0000.04417.40
5.5.150.0030.03717.35
5.5.140.0030.04017.41
5.5.130.0070.03817.36
5.5.120.0000.04417.07
5.5.110.0000.05317.45
5.5.100.0030.04217.24
5.5.90.0000.04317.21
5.5.80.0130.03317.05
5.5.70.0030.04117.27
5.5.60.0030.03817.26
5.5.50.0000.04017.22
5.5.40.0060.03517.24
5.5.30.0030.03817.16
5.5.20.0030.03917.23
5.5.10.0000.04517.20
5.5.00.0000.04317.25
5.4.450.0070.04619.14
5.4.440.0070.03619.46
5.4.430.0070.03719.27
5.4.420.0060.03919.36
5.4.410.0070.04019.25
5.4.400.0000.04119.05
5.4.390.0000.04619.05
5.4.380.0000.04419.02
5.4.370.0030.03819.06
5.4.360.0000.04219.04
5.4.350.0100.04119.05
5.4.340.0030.06919.05
5.4.320.0100.07619.10
5.4.310.0000.04518.83
5.4.300.0000.03919.13
5.4.290.0070.03818.97
5.4.280.0030.03718.80
5.4.270.0030.03618.87
5.4.260.0030.03819.09
5.4.250.0070.03619.00
5.4.240.0030.03919.00
5.4.230.0030.03818.87
5.4.220.0070.03918.84
5.4.210.0030.04018.80
5.4.200.0030.03718.96
5.4.190.0000.03919.13
5.4.180.0000.04218.82
5.4.170.0070.03618.81
5.4.160.0000.04118.96
5.4.150.0070.03719.00
5.4.140.0000.03916.60
5.4.130.0060.03216.30
5.4.120.0070.03616.40
5.4.110.0070.03716.56
5.4.100.0060.03516.32
5.4.90.0000.03916.66
5.4.80.0000.03716.32
5.4.70.0030.03516.55
5.4.60.0030.03916.38
5.4.50.0040.03516.61
5.4.40.0070.03116.59
5.4.30.0040.03216.32
5.4.20.0000.04616.55
5.4.10.0030.03316.58
5.4.00.0030.03815.97
5.3.290.0000.05014.89
5.3.280.0030.03414.89
5.3.270.0000.04014.89
5.3.260.0000.04114.89
5.3.250.0000.03814.89
5.3.240.0070.03114.89
5.3.230.0030.04014.89
5.3.220.0030.04214.89
5.3.210.0000.04114.89
5.3.200.0030.04014.89
5.3.190.0070.03114.89
5.3.180.0000.04314.89
5.3.170.0030.03814.89
5.3.160.0000.03814.89
5.3.150.0000.04114.89
5.3.140.0040.03514.89
5.3.130.0030.03914.89
5.3.120.0000.04114.89
5.3.110.0030.04314.89
5.3.100.0000.04214.89
5.3.90.0030.03314.89
5.3.80.0060.03614.89
5.3.70.0000.03714.89
5.3.60.0030.04114.89
5.3.50.0030.04914.89
5.3.40.0000.04014.89
5.3.30.0000.03914.89
5.3.20.0040.03214.89
5.3.10.0000.04814.89
5.3.00.0000.05514.89
5.2.170.0000.03114.89
5.2.160.0000.03214.89
5.2.150.0000.03314.89
5.2.140.0000.03014.89
5.2.130.0030.06314.89
5.2.120.0000.05714.89
5.2.110.0030.04214.89
5.2.100.0030.02814.89
5.2.90.0000.03414.89
5.2.80.0030.02914.89
5.2.70.0030.02914.89
5.2.60.0030.02914.89
5.2.50.0040.03214.89
5.2.40.0030.02814.89
5.2.30.0030.03014.89
5.2.20.0000.03014.89
5.2.10.0030.02914.89
5.2.00.0030.02714.89
5.1.60.0000.02914.89
5.1.50.0060.01914.89
5.1.40.0030.02414.89
5.1.30.0030.03214.89
5.1.20.0000.02814.89
5.1.10.0030.05214.89
5.1.00.0060.02114.89
5.0.50.0030.04714.89
5.0.40.0040.02214.89
5.0.30.0030.04914.89
5.0.20.0030.02214.89
5.0.10.0030.01714.89
5.0.00.0000.03114.89
4.4.90.0070.01314.89
4.4.80.0030.01214.89
4.4.70.0000.01714.89
4.4.60.0030.01314.89
4.4.50.0030.01314.89
4.4.40.0110.02214.89
4.4.30.0030.01514.89
4.4.20.0000.01714.89
4.4.10.0000.03814.89
4.4.00.0030.04014.89
4.3.110.0000.04214.89
4.3.100.0030.01414.89
4.3.90.0000.01914.89
4.3.80.0000.02514.89
4.3.70.0000.01614.89
4.3.60.0000.01714.89
4.3.50.0030.01314.89
4.3.40.0060.02114.89
4.3.30.0000.01914.89
4.3.20.0000.01814.89
4.3.10.0000.01714.89
4.3.00.0000.03414.89

preferences:
47.63 ms | 401 KiB | 5 Q