3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xyz = array ('a'=>'value1', 'b'=>'', 'c'=>'value3'); var_dump ($xyz); echo '<br />'; // let's see what we have if (isset($xyz['b'])) $foo = $xyz['b']; // no complaints here $foo = $xyz['b']; // this crashes echo 'foo is set to:', $foo, ': end', '<br />';

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.4.120.0100.01024.23
8.4.110.0050.00622.62
8.4.100.0140.00617.74
8.4.90.0140.00618.54
8.4.80.0130.00619.48
8.4.70.0110.01017.97
8.4.60.0070.00518.80
8.4.50.0060.00617.88
8.4.40.0040.01519.36
8.4.30.0060.00322.33
8.4.20.0090.00917.74
8.4.10.0140.00319.75
8.3.250.0160.00318.76
8.3.240.0110.00816.50
8.3.230.0130.00716.59
8.3.220.0060.00319.10
8.3.210.0100.00916.55
8.3.200.0060.00316.53
8.3.190.0050.00317.00
8.3.180.0120.00718.09
8.3.170.0140.00318.70
8.3.160.0130.00616.58
8.3.150.0120.00620.53
8.3.140.0080.00016.30
8.3.130.0040.00816.59
8.3.120.0060.00920.59
8.3.110.0050.00520.94
8.3.100.0100.00024.06
8.3.90.0080.00026.77
8.3.80.0060.00319.36
8.3.70.0040.01116.58
8.3.60.0140.00718.18
8.3.50.0100.00723.72
8.3.40.0120.00318.69
8.3.30.0090.00918.79
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.290.0060.00520.56
8.2.280.0090.00918.42
8.2.270.0160.00317.13
8.2.260.0030.00520.28
8.2.250.0130.00316.86
8.2.240.0000.00917.17
8.2.230.0040.00422.58
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0090.00018.88
8.2.190.0150.00618.16
8.2.180.0100.01025.92
8.2.170.0120.00319.00
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00026.35
8.2.110.0030.00721.12
8.2.100.0040.00717.84
8.2.90.0030.00518.03
8.2.80.0080.00418.21
8.2.70.0000.00817.63
8.2.60.0000.00817.63
8.2.50.0080.00018.05
8.2.40.0030.00618.16
8.2.30.0000.00718.03
8.2.20.0000.00718.12
8.2.10.0040.00419.29
8.2.00.0040.00419.26
8.1.330.0080.01121.78
8.1.320.0130.00616.04
8.1.310.0120.00618.50
8.1.300.0060.00320.15
8.1.290.0100.00030.84
8.1.280.0110.00325.92
8.1.270.0030.00522.14
8.1.260.0080.00028.09
8.1.250.0060.00328.09
8.1.240.0090.00023.97
8.1.230.0080.00422.55
8.1.220.0060.00317.78
8.1.210.0040.00418.77
8.1.200.0030.00517.36
8.1.190.0050.00517.00
8.1.180.0040.00419.01
8.1.170.0030.00718.58
8.1.160.0000.00718.82
8.1.150.0040.00418.70
8.1.140.0000.00718.73
8.1.130.0040.00419.95
8.1.120.0040.00417.31
8.1.110.0000.00717.39
8.1.100.0040.00417.40
8.1.90.0000.00717.45
8.1.80.0000.00717.27
8.1.70.0030.00317.29
8.1.60.0030.00717.51
8.1.50.0040.00417.51
8.1.40.0030.00617.50
8.1.30.0040.00417.46
8.1.20.0040.00417.52
8.1.10.0040.00417.51
8.1.00.0040.00417.53
8.0.300.0000.00719.86
8.0.290.0080.00016.75
8.0.280.0070.00018.44
8.0.270.0040.00417.91
8.0.260.0000.00618.57
8.0.250.0000.00716.98
8.0.240.0070.00016.84
8.0.230.0000.00816.86
8.0.220.0030.00616.88
8.0.210.0050.00216.77
8.0.200.0050.00316.75
8.0.190.0000.01016.76
8.0.180.0070.00316.87
8.0.170.0060.00316.88
8.0.160.0000.00816.80
8.0.150.0000.00716.73
8.0.140.0000.00716.80
8.0.130.0000.00613.29
8.0.120.0050.00316.74
8.0.110.0050.00316.85
8.0.100.0000.00716.86
8.0.90.0080.00016.69
8.0.80.0080.01316.84
8.0.70.0000.00816.84
8.0.60.0040.00416.66
8.0.50.0040.00416.81
8.0.30.0080.00816.99
8.0.20.0000.02016.91
8.0.10.0050.00216.97
8.0.00.0130.00916.70
7.4.330.0050.00015.55
7.4.320.0060.00016.42
7.4.300.0000.00616.45
7.4.290.0000.00716.32
7.4.280.0050.00316.54
7.4.270.0040.00416.52
7.4.260.0060.00013.11
7.4.250.0030.00316.41
7.4.240.0070.00016.42
7.4.230.0070.00016.61
7.4.220.0050.00216.30
7.4.210.0050.00916.52
7.4.200.0030.00316.42
7.4.130.0100.00916.47
7.4.120.0070.01216.40
7.4.110.0110.00916.32
7.4.100.0090.00816.41
7.4.90.0080.01116.50
7.4.80.0120.00816.41
7.4.70.0130.00716.45
7.4.60.0070.01016.37
7.4.50.0120.00616.36
7.4.40.0090.01116.43
7.4.30.0080.01116.44
7.4.20.0080.01016.64
7.4.10.0110.00816.45
7.4.00.0120.00816.39
7.3.330.0040.00416.31
7.3.320.0000.00513.10
7.3.310.0000.00816.20
7.3.300.0000.00616.18
7.3.290.0110.00416.30
7.3.260.0140.00716.51
7.3.250.0120.00916.36
7.3.240.0110.00916.42
7.3.230.0110.00816.53
7.3.220.0110.00616.42
7.3.210.0110.00716.52
7.3.200.0120.00716.35
7.3.190.0090.01216.41
7.3.180.0110.01416.31
7.3.170.0100.00816.53
7.3.160.0110.00816.44
7.3.150.0070.01016.39
7.3.140.0070.01016.38
7.3.130.0110.00616.46
7.3.120.0090.01016.50
7.3.110.0100.00916.32
7.3.100.0110.00616.42
7.3.90.0140.00616.28
7.3.80.0090.00816.46
7.3.70.0120.00816.35
7.3.60.0100.01016.39
7.3.50.0100.00916.40
7.3.40.0130.00616.39
7.3.30.0090.01016.36
7.3.20.0120.00716.40
7.3.10.0110.00716.39
7.3.00.0130.00616.39

preferences:
28.15 ms | 403 KiB | 5 Q