3v4l.org

run code in 500+ PHP versions simultaneously
<?php function with($o) { return $o; } class A { public function test() { echo 'hi'; } } with(new A)->test();

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.5.90.0080.01016.75
8.5.80.0110.00916.68
8.5.70.0110.00316.93
8.5.60.0110.00716.76
8.5.50.0100.00516.56
8.5.30.0090.00919.00
8.5.20.0130.00619.66
8.5.10.0110.00620.52
8.5.00.0120.01119.57
8.4.240.0090.00919.53
8.4.230.0110.01119.49
8.4.220.0090.01219.45
8.4.210.0060.00319.50
8.4.180.0110.01119.69
8.4.170.0160.00620.55
8.4.160.0090.01223.82
8.4.150.0100.00416.82
8.4.140.0120.00817.35
8.4.130.0100.00418.65
8.4.120.0150.00424.29
8.4.110.0100.01018.71
8.4.100.0120.00819.09
8.4.90.0120.00820.77
8.4.80.0100.01120.24
8.4.70.0060.00618.13
8.4.60.0100.00618.92
8.4.50.0110.01217.74
8.4.40.0130.00317.59
8.4.30.0030.00718.51
8.4.20.0110.00818.07
8.4.10.0070.01319.36
8.3.330.0130.00818.31
8.3.320.0100.01018.45
8.3.310.0100.01018.30
8.3.300.0130.00720.72
8.3.290.0160.00720.72
8.3.280.0110.01118.26
8.3.270.0120.00716.67
8.3.260.0050.00616.74
8.3.250.0110.00718.88
8.3.240.0070.00717.05
8.3.230.0130.00616.60
8.3.220.0130.00519.04
8.3.210.0100.00516.68
8.3.200.0060.00316.42
8.3.190.0120.00719.13
8.3.180.0090.00916.39
8.3.170.0190.00020.75
8.3.160.0150.00418.42
8.3.150.0120.00319.13
8.3.140.0060.00316.73
8.3.130.0060.00616.51
8.3.120.0120.00620.66
8.3.110.0070.00420.94
8.3.100.0030.00624.06
8.3.90.0060.00326.77
8.3.80.0030.00620.03
8.3.70.0070.00716.58
8.3.60.0120.00316.50
8.3.50.0070.00719.95
8.3.40.0100.00721.73
8.3.30.0040.01118.54
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0000.00726.16
8.2.320.0090.00618.03
8.2.310.0110.00818.00
8.2.300.0080.01222.15
8.2.290.0140.00420.46
8.2.280.0110.01018.26
8.2.270.0100.00716.92
8.2.260.0150.00318.41
8.2.250.0060.00316.62
8.2.240.0090.00017.13
8.2.230.0040.00422.58
8.2.220.0150.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00316.63
8.2.190.0150.00016.75
8.2.180.0180.00425.92
8.2.170.0130.00718.79
8.2.160.0080.00622.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0070.00320.35
8.2.100.0060.00318.83
8.1.340.0150.01021.61
8.1.330.0060.00421.84
8.1.320.0100.01016.29
8.1.310.0070.01016.89
8.1.300.0100.00618.40
8.1.290.0090.00018.88
8.1.280.0110.00425.92
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00918.89
8.1.230.0070.00318.45
5.3.290.0010.00513.15

preferences:
78.36 ms | 899 KiB | 5 Q