3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public function baz() { echo "Worked!"; } } $foo = 'bam'; $bam = ['bar' => new TestClass()]; $$foo['bar']->baz(); function getResult() { return "string"; } echo getResult(){0};

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.0110.01116.50
8.3.50.0130.00316.09
8.3.40.0090.00618.53
8.3.30.0120.00318.58
8.3.20.0070.00720.04
8.3.10.0000.00823.61
8.3.00.0080.00023.48
8.2.180.0170.00316.63
8.2.170.0170.00322.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00021.13
8.2.120.0070.00026.35
8.2.110.0070.00419.37
8.2.100.0080.00317.93
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0040.00417.25
8.2.60.0000.00917.91
8.2.50.0080.00018.09
8.2.40.0000.00720.64
8.2.30.0030.00319.30
8.2.20.0040.00417.48
8.2.10.0080.00017.93
8.2.00.0080.00017.92
8.1.280.0150.00325.92
8.1.270.0120.00622.05
8.1.260.0080.00028.09
8.1.250.0030.00328.09
8.1.240.0090.00322.04
8.1.230.0040.00817.52
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0050.00317.10
8.1.180.0080.00018.10
8.1.170.0040.00418.58
8.1.160.0050.00220.63
8.1.150.0000.00820.62
8.1.140.0080.00019.34
8.1.130.0000.00717.67
8.1.120.0030.00517.36
8.1.110.0000.00717.25
8.1.100.0000.01117.29
8.1.90.0030.00617.22
8.1.80.0000.00717.38
8.1.70.0000.00717.35
8.1.60.0050.00317.49
8.1.50.0000.00817.39
8.1.40.0030.00517.43
8.1.30.0000.00817.42
8.1.20.0040.00417.39
8.1.10.0080.00017.40
8.1.00.0080.00017.20
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0040.00418.25
8.0.270.0030.00317.13
8.0.260.0030.00317.04
8.0.250.0000.00616.78
8.0.240.0040.00416.84
8.0.230.0070.00016.82
8.0.220.0030.00316.83
8.0.210.0000.00716.80
8.0.200.0080.00016.84
8.0.190.0060.00316.86
8.0.180.0030.00516.79
8.0.170.0000.00816.87
8.0.160.0070.00016.89
8.0.150.0000.00716.79
8.0.140.0040.00416.68
8.0.130.0000.00513.26
8.0.120.0040.00416.79
8.0.110.0000.00716.84
8.0.100.0050.00316.89
8.0.90.0040.00416.82
8.0.80.0100.00616.73
8.0.70.0080.00016.80
8.0.60.0040.00416.66
8.0.50.0000.00816.89
8.0.30.0120.01116.91
8.0.20.0110.00717.40
8.0.10.0070.00017.06
8.0.00.0090.00916.63
7.4.330.0000.00516.67
7.4.320.0000.00716.56
7.4.300.0000.00716.49
7.4.290.0000.00716.57
7.4.280.0040.00416.58
7.4.270.0030.00316.41
7.4.260.0000.00716.46
7.4.250.0030.00516.52
7.4.240.0030.00316.36
7.4.230.0000.00816.40
7.4.220.0100.01316.57
7.4.210.0120.00316.61
7.4.200.0030.00416.53
7.4.160.0140.00316.69
7.4.150.0100.00717.40
7.4.140.0070.01117.86
7.4.130.0130.01316.66
7.4.120.0120.00516.56
7.4.110.0090.00816.37
7.4.100.0180.00016.52
7.4.90.0180.00016.53
7.4.80.0060.01219.39
7.4.70.0090.00916.64
7.4.60.0130.00316.41
7.4.50.0030.00816.72
7.4.40.0100.00616.56
7.4.30.0070.01316.26
7.4.00.0070.00714.89
7.3.330.0030.00313.30
7.3.320.0030.00313.37
7.3.310.0030.00316.41
7.3.300.0000.00716.29
7.3.290.0000.00716.25
7.3.280.0090.00816.38
7.3.270.0100.00717.40
7.3.260.0060.01216.36
7.3.240.0110.01116.61
7.3.230.0070.01016.62
7.3.210.0110.00516.47
7.3.200.0110.00819.39
7.3.190.0150.00616.25
7.3.180.0120.00316.42
7.3.170.0030.01316.76
7.3.160.0060.00916.28
7.2.330.0090.00816.79
7.2.320.0120.00916.74
7.2.310.0090.00916.41
7.2.300.0100.00716.45
7.2.290.0130.00616.71
7.2.80.0040.00716.48
7.2.60.0040.01116.67
7.2.00.0000.01019.54
7.1.200.0090.00315.63
7.1.100.0000.01418.14
7.1.70.0080.00017.20
7.1.60.0110.01419.40
7.1.50.0100.01016.78
7.1.00.0070.07022.57
7.0.200.0410.01014.54
7.0.60.0300.07021.66
7.0.50.0070.07017.84
7.0.40.0030.04320.24
7.0.30.0230.09320.30
7.0.20.0330.04020.21
7.0.10.0030.09020.09
7.0.00.0100.07320.12
5.6.280.0030.04320.86
5.6.210.0130.07020.70
5.6.200.0070.07018.28
5.6.190.0030.06020.42
5.6.180.0530.06320.77
5.6.170.0170.05020.39
5.6.160.0030.04020.52
5.6.150.0130.06018.12
5.6.140.0070.08018.27
5.6.130.0000.04318.13
5.6.120.0070.07720.99
5.6.110.0100.09021.10
5.6.100.0070.04021.01
5.6.90.0070.08321.14
5.6.80.0130.07020.41
5.5.350.0130.05020.45
5.5.340.0100.07317.99
5.5.330.0100.04320.19
5.5.320.0270.04320.38
5.5.310.0230.06720.27
5.5.300.0070.06317.95
5.5.290.0070.08317.95
5.5.280.0100.06320.88
5.5.270.0000.08320.87
5.5.260.0100.08020.88
5.5.250.0200.07320.64
5.5.240.0200.08020.27

preferences:
39.16 ms | 400 KiB | 5 Q