3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new stdClass(); $test->whatefer = ['blah' => 'ebook']; echo $test->whatefer['blah']; if ($hmm = @$test->whatefer['blah'] && isset($hmm) && $hmm === 'ebook') { echo "yep"; } else { echo "nope"; }

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.0180.00318.56
8.3.50.0060.01122.88
8.3.40.0090.00918.79
8.3.30.0110.00318.45
8.3.20.0070.00020.21
8.3.10.0040.00421.64
8.3.00.0040.00419.14
8.2.180.0170.00016.88
8.2.170.0090.00922.96
8.2.160.0110.00419.25
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.35
8.2.120.0000.00826.35
8.2.110.0000.00919.30
8.2.100.0090.00317.91
8.2.90.0040.00419.35
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0000.00918.04
8.2.50.0050.00318.10
8.2.40.0070.00020.60
8.2.30.0000.00719.19
8.2.20.0040.00417.85
8.2.10.0040.00418.12
8.2.00.0040.00418.11
8.1.280.0100.00325.92
8.1.270.0040.00423.91
8.1.260.0050.00228.09
8.1.250.0050.00228.09
8.1.240.0030.00621.34
8.1.230.0080.00417.42
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0000.00818.57
8.1.160.0000.00719.07
8.1.150.0080.00018.80
8.1.140.0040.00419.56
8.1.130.0030.00317.63
8.1.120.0000.00717.36
8.1.110.0000.00717.50
8.1.100.0070.00017.47
8.1.90.0040.00417.50
8.1.80.0040.00417.35
8.1.70.0000.00817.33
8.1.60.0000.00817.59
8.1.50.0030.00617.50
8.1.40.0040.00417.36
8.1.30.0000.00817.66
8.1.20.0050.00317.50
8.1.10.0060.00317.62
8.1.00.0040.00417.48
8.0.300.0000.01018.77
8.0.290.0000.00716.63
8.0.280.0050.00318.44
8.0.270.0040.00417.30
8.0.260.0000.00617.25
8.0.250.0030.00316.96
8.0.240.0030.00316.96
8.0.230.0030.00316.84
8.0.220.0030.00316.95
8.0.210.0040.00316.87
8.0.200.0000.00817.00
8.0.190.0100.00016.91
8.0.180.0000.00816.79
8.0.170.0050.00316.87
8.0.160.0020.00516.89
8.0.150.0070.00016.74
8.0.140.0000.00816.75
8.0.130.0000.00513.27
8.0.120.0030.00616.74
8.0.110.0000.00716.89
8.0.100.0040.00416.72
8.0.90.0070.00016.68
8.0.80.0100.00716.89
8.0.70.0040.00416.91
8.0.60.0050.00316.96
8.0.50.0000.00716.87
8.0.30.0110.00616.79
8.0.20.0120.00917.40
8.0.10.0030.00617.01
8.0.00.0120.00616.50
7.4.330.0060.00015.08
7.4.320.0070.00016.40
7.4.300.0030.00316.50
7.4.290.0070.00016.54
7.4.280.0040.00416.61
7.4.270.0040.00416.64
7.4.260.0050.00316.50
7.4.250.0030.00316.45
7.4.240.0030.00316.51
7.4.230.0000.00716.63
7.4.220.0140.00616.61
7.4.210.0020.01416.50
7.4.200.0000.00716.39
7.4.160.0100.00516.62
7.4.150.0000.01817.40
7.4.140.0080.01517.86
7.4.130.0120.00916.59
7.4.120.0100.00816.42
7.4.110.0160.00716.39
7.4.100.0130.00716.62
7.4.90.0100.00716.41
7.4.80.0110.00719.39
7.4.70.0130.00716.35
7.4.60.0100.00616.55
7.4.50.0060.00616.43
7.4.40.0100.00716.63
7.4.30.0090.00616.26
7.4.00.0040.01114.58
7.3.330.0000.00513.19
7.3.320.0030.00313.07
7.3.310.0000.00716.09
7.3.300.0070.00016.37
7.3.290.0030.00316.16
7.3.280.0090.00816.24
7.3.270.0090.00917.40
7.3.260.0100.01216.27
7.3.250.0120.00916.33
7.3.240.0100.00916.45
7.3.230.0030.02016.39
7.3.210.0060.00916.34
7.3.200.0100.00716.24
7.3.190.0060.00916.51
7.3.180.0090.00616.36
7.3.170.0060.01016.39
7.3.160.0060.00916.25
7.2.330.0070.01116.39
7.2.320.0090.00916.70
7.2.310.0090.00916.79
7.2.300.0030.01416.31
7.2.290.0100.00616.45
7.2.60.0060.00616.79
7.2.00.0030.01019.07
7.1.200.0000.00715.89
7.1.70.0000.00817.16
7.1.60.0070.01719.90
7.1.00.0070.07322.31
7.0.200.0000.00816.55
7.0.70.0200.06019.94
7.0.60.0170.05719.92
7.0.50.0130.06720.35
7.0.40.0170.05720.29
7.0.30.0070.07720.39
7.0.20.0270.05720.34
7.0.10.0230.05720.42
7.0.00.0130.06720.36
5.6.280.0100.06320.98
5.6.220.0230.05320.67
5.6.210.0200.05720.55
5.6.200.0170.07321.16
5.6.190.0130.06021.09
5.6.180.0170.05721.16
5.6.170.0130.06321.06
5.6.160.0100.06721.10
5.6.150.0270.05321.05
5.6.140.0170.06021.16
5.6.130.0370.04321.07
5.6.120.0170.06021.10
5.6.110.0130.07321.12
5.6.100.0270.05021.00
5.6.90.0300.05021.04
5.6.80.0130.06020.50
5.6.70.0330.04720.49
5.6.60.0200.05320.38
5.6.50.0200.06320.57
5.6.40.0270.05320.36
5.6.30.0100.06020.45
5.6.20.0230.05320.34
5.6.10.0200.05320.44
5.6.00.0200.05720.47
5.5.360.0130.06020.40
5.5.350.0230.06020.44
5.5.340.0130.06020.92
5.5.330.0130.06020.85
5.5.320.0100.06720.95
5.5.310.0200.05720.81
5.5.300.0200.05720.76
5.5.290.0200.06320.98
5.5.280.0100.06020.98
5.5.270.0200.05720.90
5.5.260.0130.06320.91
5.5.250.0170.06020.80
5.5.240.0330.06320.28
5.5.230.0170.06320.26
5.5.220.0170.05720.23
5.5.210.0130.05720.16
5.5.200.0230.05320.32
5.5.190.0100.07020.17
5.5.180.0200.05720.27
5.5.160.0170.05720.05
5.5.150.0200.05320.20
5.5.140.0230.05320.16
5.5.130.0130.05720.17
5.5.120.0200.05720.27
5.5.110.0200.07020.32
5.5.100.0300.05320.22
5.5.90.0230.06020.22
5.5.80.0330.06720.06
5.5.70.0330.04020.00
5.5.60.0230.05020.14
5.5.50.0170.05720.21
5.5.40.0170.06020.21
5.5.30.0170.05720.04
5.5.20.0130.06019.98
5.5.10.0230.05320.07
5.5.00.0170.05719.97

preferences:
49.33 ms | 401 KiB | 5 Q