3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function foo() { return 1; } } $f = (new Foo())->foo();

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.0150.00416.63
8.3.50.0110.00921.98
8.3.40.0110.00418.64
8.3.30.0120.00318.48
8.3.20.0070.00020.20
8.3.10.0040.00423.57
8.3.00.0000.00819.13
8.2.180.0070.01116.50
8.2.170.0140.00722.96
8.2.160.0070.00720.39
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00020.58
8.2.120.0040.00426.35
8.2.110.0030.00621.98
8.2.100.0140.00017.63
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0050.00517.63
8.2.60.0030.00517.80
8.2.50.0040.00418.07
8.2.40.0050.00519.34
8.2.30.0080.00020.62
8.2.20.0040.00717.59
8.2.10.0040.00417.99
8.2.00.0040.00417.86
8.1.280.0060.01325.92
8.1.270.0070.00023.91
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0030.00622.46
8.1.230.0040.00817.42
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.00917.22
8.1.190.0040.00417.63
8.1.180.0030.00518.10
8.1.170.0000.00718.58
8.1.160.0000.00721.84
8.1.150.0070.00318.86
8.1.140.0000.00919.46
8.1.130.0000.00817.56
8.1.120.0030.00317.39
8.1.110.0040.00417.34
8.1.100.0050.00217.40
8.1.90.0070.00017.44
8.1.80.0080.00017.29
8.1.70.0030.00317.27
8.1.60.0000.00817.49
8.1.50.0030.00617.52
8.1.40.0040.00417.41
8.1.30.0090.00017.50
8.1.20.0050.00317.48
8.1.10.0000.00917.43
8.1.00.0000.00717.46
8.0.300.0080.00018.77
8.0.290.0000.00716.58
8.0.280.0030.00318.29
8.0.270.0000.00717.13
8.0.260.0030.00317.11
8.0.250.0030.00316.91
8.0.240.0030.00316.81
8.0.230.0040.00416.84
8.0.220.0000.00716.84
8.0.210.0000.00716.70
8.0.200.0060.00016.84
8.0.190.0000.00716.92
8.0.180.0040.00416.77
8.0.170.0000.00816.75
8.0.160.0030.00416.86
8.0.150.0060.00316.59
8.0.140.0030.00316.78
8.0.130.0000.00613.22
8.0.120.0000.00816.81
8.0.110.0000.00716.70
8.0.100.0040.00416.83
8.0.90.0000.00816.85
8.0.80.0030.01216.84
8.0.70.0000.00816.65
8.0.60.0040.00416.88
8.0.50.0000.00816.77
8.0.30.0100.01016.91
8.0.20.0100.00817.40
8.0.10.0040.00416.83
8.0.00.0050.01216.58
7.4.330.0000.00516.85
7.4.320.0000.00716.50
7.4.300.0030.00316.59
7.4.290.0000.00716.62
7.4.280.0060.00316.50
7.4.270.0040.00416.48
7.4.260.0000.00716.40
7.4.250.0020.00516.55
7.4.240.0020.00516.54
7.4.230.0070.00016.66
7.4.220.0110.00716.63
7.4.210.0000.01516.60
7.4.200.0070.00016.34
7.4.160.0080.00816.30
7.4.150.0090.00917.40
7.4.140.0140.00817.86
7.4.130.0080.01616.44
7.4.120.0120.00816.50
7.4.110.0130.00316.59
7.4.100.0090.01316.66
7.4.90.0140.00316.54
7.4.80.0130.00319.39
7.4.70.0060.01616.48
7.4.60.0080.00816.44
7.4.50.0060.00916.36
7.4.40.0040.01716.41
7.4.30.0190.00316.48
7.4.00.0120.00414.55
7.3.330.0030.00313.13
7.3.320.0000.00513.16
7.3.310.0000.00716.19
7.3.300.0030.00316.25
7.3.290.0080.00816.27
7.3.280.0090.00616.27
7.3.270.0110.01417.40
7.3.260.0120.00616.46
7.3.250.0120.00516.34
7.3.240.0120.00716.29
7.3.230.0150.00316.55
7.3.210.0040.01216.33
7.3.200.0050.01316.37
7.3.190.0100.01016.22
7.3.180.0090.01216.32
7.3.170.0060.01316.27
7.3.160.0100.01316.41
7.2.330.0060.01116.30
7.2.320.0120.00616.53
7.2.310.0090.00916.71
7.2.300.0130.00316.70
7.2.290.0100.00616.70
7.2.60.0070.00716.82
7.2.00.0000.01218.95
7.1.200.0000.01215.41
7.1.100.0040.00717.83
7.1.70.0100.00516.90
7.1.60.0080.01519.36
7.1.50.0100.01416.74
7.1.00.0070.07322.32
7.0.200.0060.00316.37
7.0.60.0000.06020.00
7.0.50.0130.06317.85
7.0.40.0030.04320.09
7.0.30.0370.07020.30
7.0.20.0270.08020.23
7.0.10.0030.08320.07
7.0.00.0070.08720.05
5.6.280.0000.06721.04
5.6.210.0100.07020.61
5.6.200.0000.08018.17
5.6.190.0200.03720.58
5.6.180.0330.06020.48
5.6.170.0370.05720.61
5.6.160.0070.04020.58
5.6.150.0070.06318.20
5.6.140.0070.05318.24
5.6.130.0000.04318.19
5.6.120.0070.03720.99
5.6.110.0130.07321.13
5.6.100.0100.06021.03
5.6.90.0030.09020.98
5.6.80.0070.03720.42
5.5.350.0230.06720.43
5.5.340.0000.07018.02
5.5.330.0130.07020.27
5.5.320.0070.07020.27
5.5.310.0170.05020.32
5.5.300.0000.05317.98
5.5.290.0070.08317.95
5.5.280.0000.08020.88
5.5.270.0100.05020.86
5.5.260.0070.06020.86
5.5.250.0170.07720.61
5.5.240.0130.04020.37

preferences:
52.66 ms | 401 KiB | 5 Q