3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooBar { public function foo() { goto anythingIWantToWrite; echo 'I am skipped'; anythingIWantToWrite: // this doesn't throw an error? return "foo"; } public function baz() { goto baz; echo 'I am skipped'; baz: 'foobar'; // this doesn't throw an error? return "bar"; } } $class = new FooBar(); echo $class->foo()."\n"; echo $class->baz();

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.0000.01418.40
8.3.50.0100.01016.48
8.3.40.0040.01118.62
8.3.30.0110.00418.57
8.3.20.0050.00320.59
8.3.10.0060.00320.35
8.3.00.0100.00019.25
8.2.180.0110.00418.36
8.2.170.0170.00318.83
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0050.00221.00
8.2.110.0030.00622.13
8.2.100.0080.00417.72
8.2.90.0090.00017.63
8.2.80.0040.00418.82
8.2.70.0000.00817.92
8.2.60.0040.00418.09
8.2.50.0030.00618.10
8.2.40.0030.00619.36
8.2.30.0040.00419.24
8.2.20.0000.00818.04
8.2.10.0040.00419.47
8.2.00.0040.00418.08
8.1.280.0130.00725.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0140.00328.09
8.1.240.0100.00022.24
8.1.230.0070.00417.83
8.1.220.0040.00417.78
8.1.210.0000.01118.77
8.1.200.0030.00617.35
8.1.190.0050.00317.22
8.1.180.0030.00918.10
8.1.170.0080.00018.71
8.1.160.0050.00318.89
8.1.150.0040.00418.88
8.1.140.0000.00720.22
8.1.130.0060.00020.32
8.1.120.0040.00417.36
8.1.110.0040.00417.46
8.1.100.0050.00217.45
8.1.90.0000.00817.45
8.1.80.0040.00417.35
8.1.70.0040.00417.34
8.1.60.0030.00617.50
8.1.50.0040.00417.50
8.1.40.0050.00317.38
8.1.30.0080.00017.71
8.1.20.0000.00917.66
8.1.10.0040.00417.54
8.1.00.0000.00817.57
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0050.00517.17
8.0.260.0000.00618.49
8.0.250.0070.00016.92
8.0.240.0040.00416.86
8.0.230.0040.00416.91
8.0.220.0070.00016.91
8.0.210.0040.00416.88
8.0.200.0000.00716.92
8.0.190.0050.00216.98
8.0.180.0000.00816.79
8.0.170.0040.00416.90
8.0.160.0030.00616.98
8.0.150.0030.00316.69
8.0.140.0030.00516.82
8.0.130.0050.00013.26
8.0.120.0000.00816.95
8.0.110.0000.00716.90
8.0.100.0040.00416.88
8.0.90.0000.00716.77
8.0.80.0100.00516.85
8.0.70.0070.00016.87
8.0.60.0040.00316.72
8.0.50.0000.00716.93
8.0.30.0090.01017.03
8.0.20.0070.01116.83
8.0.10.0040.00416.76
8.0.00.0120.00716.85
7.4.330.0030.00315.55
7.4.320.0030.00316.50
7.4.300.0000.00616.45
7.4.290.0030.00316.63
7.4.280.0060.00316.57
7.4.270.0030.00316.55
7.4.260.0000.00816.60
7.4.250.0040.00416.47
7.4.240.0060.00316.56
7.4.230.0000.00716.66
7.4.220.0030.00516.68
7.4.210.0080.00916.54
7.4.200.0030.00316.48
7.4.160.0060.00916.47
7.4.140.0110.00717.86
7.4.130.0060.01116.66
7.4.120.0130.00516.48
7.4.110.0070.01416.42
7.4.100.0070.00816.47
7.4.90.0130.01016.43
7.4.80.0040.01219.39
7.4.70.0060.01416.51
7.4.60.0070.01016.38
7.4.50.0070.01016.41
7.4.40.0130.00316.31
7.4.00.0060.01215.08
7.3.330.0030.00613.16
7.3.320.0000.00613.22
7.3.310.0030.00516.27
7.3.300.0030.00316.29
7.3.290.0030.00316.24
7.3.280.0070.01316.21
7.3.260.0120.00916.29
7.3.240.0080.01016.47
7.3.230.0120.00616.55
7.3.210.0070.01016.38
7.3.200.0090.01216.43
7.3.190.0140.00316.54
7.3.180.0110.00316.23
7.3.170.0080.00916.46
7.3.160.0100.00716.14
7.3.120.0030.01614.71
7.3.110.0110.00714.84
7.3.100.0030.01014.70
7.3.90.0090.00914.43
7.3.80.0070.00714.56
7.3.70.0070.00714.84
7.3.60.0000.01014.83
7.3.50.0100.00314.74
7.3.40.0060.00614.63
7.3.30.0110.00414.32
7.3.20.0310.00615.48
7.3.10.0380.00315.71
7.3.00.0390.00515.57
7.2.330.0130.00316.48
7.2.320.0070.01116.67
7.2.310.0110.00516.46
7.2.300.0190.00416.77
7.2.290.0030.01316.32
7.2.250.0090.00714.92
7.2.240.0090.00615.05
7.2.230.0100.00614.57
7.2.220.0120.00314.94
7.2.210.0030.01314.86
7.2.200.0060.00314.99
7.2.190.0070.01015.02
7.2.180.0090.00914.89
7.2.170.0060.00914.84
7.2.150.0770.01315.16
7.2.140.0750.00715.10
7.2.130.0560.00714.80
7.2.120.0630.00314.95
7.2.110.0820.00014.95
7.2.100.0700.00714.93
7.2.90.0700.00714.73
7.2.80.0670.00714.90
7.2.70.0680.00714.84
7.2.60.0850.00315.07
7.2.50.0610.00315.00
7.2.40.0700.00614.89
7.2.30.0880.00314.85
7.2.20.0560.00715.02
7.2.10.0770.01014.94
7.2.00.1280.01014.98
7.1.330.0030.01015.59
7.1.320.0030.01315.81
7.1.310.0040.00415.51
7.1.300.0090.00615.69
7.1.290.0030.00615.58
7.1.280.0060.00615.50
7.1.270.0060.00315.63
7.1.260.0070.01015.50
7.1.250.0700.01013.78

preferences:
68.22 ms | 400 KiB | 5 Q