3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test() { echo $undef; } public function test2() { $x = $this; // use $this echo $undef; } } set_error_handler(function($_1, $_2, $_3, $_4, $ctx) { var_dump(isset($ctx['this'])); }); (new Foo)->test(); (new Foo)->test2();

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.0050.00520.80
8.4.110.0120.00822.72
8.4.100.0110.01017.93
8.4.90.0060.00418.60
8.4.80.0090.00818.04
8.4.70.0100.00718.00
8.4.60.0130.00718.66
8.4.50.0110.00818.00
8.4.40.0130.00719.45
8.4.30.0050.00317.66
8.4.20.0160.00317.50
8.4.10.0060.00319.64
8.3.250.0080.00718.99
8.3.240.0120.00916.61
8.3.230.0100.00916.72
8.3.220.0100.00817.11
8.3.210.0110.00816.84
8.3.200.0040.00516.57
8.3.190.0070.01217.04
8.3.180.0110.00916.76
8.3.170.0090.00918.80
8.3.160.0060.01220.36
8.3.150.0080.00017.41
8.3.140.0030.00616.53
8.3.130.0090.00018.63
8.3.120.0030.00620.80
8.3.110.0060.00320.94
8.3.100.0030.00616.62
8.3.90.0070.01026.77
8.3.80.0050.00517.97
8.3.70.0040.01118.43
8.3.60.0110.01116.63
8.3.50.0240.00522.83
8.3.40.0040.01118.80
8.3.30.0090.00918.80
8.3.20.0040.00419.12
8.3.10.0050.00323.53
8.3.00.0100.00020.85
8.2.290.0060.00620.47
8.2.280.0120.00721.86
8.2.270.0180.00018.76
8.2.260.0070.00717.27
8.2.250.0090.00018.30
8.2.240.0060.00318.55
8.2.230.0130.00622.58
8.2.220.0000.00824.06
8.2.210.0070.01126.77
8.2.200.0060.00318.29
8.2.190.0140.00416.88
8.2.180.0090.00616.63
8.2.170.0090.00622.96
8.2.160.0120.00320.23
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00021.03
8.2.110.0000.00821.89
8.2.100.0120.00017.84
8.2.90.0060.00319.80
8.2.80.0060.00317.97
8.2.70.0050.00318.03
8.2.60.0040.00418.03
8.2.50.0000.00818.10
8.2.40.0050.00320.64
8.2.30.0070.00019.18
8.2.20.0000.00718.07
8.2.10.0080.00018.07
8.2.00.0040.00417.70
8.1.330.0100.00822.01
8.1.320.0100.01015.98
8.1.310.0000.00818.63
8.1.300.0060.00316.12
8.1.290.0030.00630.84
8.1.280.0140.00725.92
8.1.270.0040.00423.79
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0040.00422.14
8.1.230.0060.00620.89
8.1.220.0030.00617.75
8.1.210.0050.00318.77
8.1.200.0040.00417.38
8.1.190.0050.00317.22
8.1.180.0000.01218.10
8.1.170.0040.00418.78
8.1.160.0040.00418.89
8.1.150.0080.00020.21
8.1.140.0040.00419.49
8.1.130.0040.00417.60
8.1.120.0070.00017.48
8.1.110.0000.00817.39
8.1.100.0000.00817.38
8.1.90.0040.00417.41
8.1.80.0000.00717.43
8.1.70.0080.00017.37
8.1.60.0050.00317.57
8.1.50.0050.00317.46
8.1.40.0080.00017.38
8.1.30.0040.00417.54
8.1.20.0050.00317.63
8.1.10.0060.00317.43
8.1.00.0080.00017.52
8.0.300.0040.00419.79
8.0.290.0030.00516.63
8.0.280.0030.00318.46
8.0.270.0000.00717.19
8.0.260.0030.00317.19
8.0.250.0030.00617.10
8.0.240.0030.00316.90
8.0.230.0030.00316.90
8.0.220.0060.00316.88
8.0.210.0000.00816.89
8.0.200.0000.00717.05
8.0.190.0040.00416.94
8.0.180.0030.00517.00
8.0.170.0040.00416.98
8.0.160.0090.00016.84
8.0.150.0000.00717.00
8.0.140.0070.00016.93
8.0.130.0030.00313.36
8.0.120.0000.00816.81
8.0.110.0030.00316.90
8.0.100.0000.00816.82
8.0.90.0080.00016.84
8.0.80.0030.01316.98
8.0.70.0040.00416.77
8.0.60.0040.00416.87
8.0.50.0000.00716.96
8.0.30.0100.00517.13
8.0.20.0110.01017.40
8.0.10.0080.00016.81
8.0.00.0130.00416.82
7.4.330.0000.00615.55
7.4.320.0030.00316.60
7.4.300.0000.00616.51
7.4.290.0000.00716.46
7.4.280.0000.00716.45
7.4.270.0030.00316.66
7.4.260.0030.00316.59
7.4.250.0000.00716.43
7.4.240.0000.00716.54
7.4.230.0030.00316.39
7.4.220.0070.01916.45
7.4.210.0050.01016.59
7.4.200.0070.00016.39
7.4.160.0100.00616.50
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0140.00516.52
7.4.120.0070.01216.55
7.4.110.0100.01016.70
7.4.100.0070.01016.46
7.4.90.0120.00616.56
7.4.80.0060.00919.39
7.4.70.0060.01516.45
7.4.60.0150.00016.72
7.4.50.0030.01016.30
7.4.40.0130.00316.43
7.4.30.0090.00916.64
7.4.00.0050.01315.04
7.3.330.0060.00013.23
7.3.320.0020.00213.20
7.3.310.0070.00016.18
7.3.300.0030.00316.22
7.3.290.0030.00516.14
7.3.280.0060.01016.37
7.3.270.0100.00617.40
7.3.260.0120.00916.43
7.3.250.0070.01016.46
7.3.240.0120.00816.49
7.3.230.0120.00616.54
7.3.210.0160.00716.45
7.3.200.0120.00316.45
7.3.190.0100.00616.48
7.3.180.0080.01216.56
7.3.170.0130.00316.70
7.3.160.0150.00316.55
7.3.120.0100.01014.77
7.3.110.0080.00814.75
7.3.100.0030.01014.63
7.3.90.0100.00314.90
7.3.80.0040.01114.80
7.3.70.0070.01014.80
7.3.60.0040.01114.92
7.3.50.0000.01215.00
7.3.40.0000.01414.82
7.3.30.0070.01114.65
7.3.20.0070.01016.71
7.3.10.0060.01316.64
7.3.00.0070.00716.67
7.2.330.0130.01016.43
7.2.320.0130.00316.84
7.2.310.0130.00316.78
7.2.300.0060.01316.50
7.2.290.0120.00316.77
7.2.250.0110.00715.16
7.2.240.0070.01314.86
7.2.230.0040.01415.23
7.2.220.0060.00615.27
7.2.210.0090.00614.96
7.2.200.0150.00415.06
7.2.190.0000.01314.91
7.2.180.0040.01114.76
7.2.170.0140.00015.04
7.2.60.0060.00617.00
7.2.00.0120.00019.34
7.1.330.0100.00315.61
7.1.320.0130.00015.93
7.1.310.0000.01715.84
7.1.300.0060.00615.88
7.1.290.0060.00615.52
7.1.280.0120.00615.95
7.1.270.0170.00015.65
7.1.260.0070.00715.64
7.1.200.0000.01115.84
7.1.100.0060.00918.19
7.1.70.0030.00617.14
7.1.60.0080.00416.96
7.1.50.0060.01516.85
7.1.00.0030.07322.48
7.0.200.0290.01014.92
7.0.130.0070.08722.09
7.0.120.0130.07322.18
7.0.110.0230.06322.19
7.0.100.0170.09022.02
7.0.90.0100.06022.14
7.0.80.0170.06322.10
7.0.70.0430.06320.26
7.0.60.0030.08021.98
7.0.50.0070.07722.05
7.0.40.0070.07321.99
7.0.30.0100.06022.03
7.0.20.0130.06022.11
7.0.10.0030.06722.06
7.0.00.0300.07020.21
5.6.280.0030.09320.88
5.6.270.0100.07320.88
5.6.260.0070.07720.90
5.6.250.0070.06721.07
5.6.240.0200.05321.11
5.6.230.0070.08020.88
5.6.220.0130.07321.02
5.6.210.0170.07320.92
5.6.200.0130.06321.09
5.6.190.0230.06720.80
5.6.180.0130.06721.04
5.6.170.0170.06320.87
5.6.160.0100.07020.95
5.6.150.0030.08321.00
5.6.140.0200.07720.85
5.6.130.0200.06321.00
5.6.120.0070.08320.80
5.6.110.0230.07020.98
5.6.100.0000.09320.82
5.6.90.0170.05720.84
5.6.80.0100.06020.45
5.6.70.0070.07320.20
5.6.60.0070.08020.32
5.6.50.0070.07720.19
5.6.40.0000.07720.45
5.6.30.0200.06720.38
5.6.20.0070.06720.12
5.6.10.0130.06020.11
5.6.00.0030.08020.40

preferences:
29.13 ms | 403 KiB | 5 Q