3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function foo() { echo 'foo'; } } $bar = new Test; var_dump($bar::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.0110.00418.56
8.3.50.0070.01018.29
8.3.40.0030.01018.59
8.3.30.0040.01218.86
8.3.20.0040.00418.59
8.3.10.0040.00423.52
8.3.00.0000.00820.57
8.2.180.0120.00918.29
8.2.170.0140.00422.96
8.2.160.0130.00720.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00719.77
8.2.120.0060.00326.35
8.2.110.0060.00622.25
8.2.100.0060.00617.72
8.2.90.0060.00317.84
8.2.80.0000.00817.97
8.2.70.0000.00817.80
8.2.60.0080.00018.03
8.2.50.0060.00318.10
8.2.40.0000.00719.24
8.2.30.0040.00419.24
8.2.20.0050.00517.97
8.2.10.0070.00017.97
8.2.00.0040.00417.59
8.1.280.0100.01025.92
8.1.270.0000.00822.02
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0090.00022.34
8.1.230.0110.00020.88
8.1.220.0080.00017.74
8.1.210.0030.00520.70
8.1.200.0060.00317.22
8.1.190.0080.00017.10
8.1.180.0090.00018.10
8.1.170.0030.00618.34
8.1.160.0000.00718.80
8.1.150.0000.00918.70
8.1.140.0040.00422.01
8.1.130.0030.00319.99
8.1.120.0000.00717.29
8.1.110.0040.00417.44
8.1.100.0050.00317.23
8.1.90.0030.00517.41
8.1.80.0040.00417.38
8.1.70.0000.00817.41
8.1.60.0000.00817.51
8.1.50.0040.00417.55
8.1.40.0080.00017.54
8.1.30.0000.00817.50
8.1.20.0040.00417.62
8.1.10.0040.00417.57
8.1.00.0050.00317.57
8.0.300.0000.00819.97
8.0.290.0040.00416.63
8.0.280.0070.00018.38
8.0.270.0000.00717.19
8.0.260.0070.00018.38
8.0.250.0080.00016.86
8.0.240.0000.00716.88
8.0.230.0030.00316.82
8.0.220.0030.00316.89
8.0.210.0030.00316.87
8.0.200.0000.00816.87
8.0.190.0070.00016.86
8.0.180.0080.00016.81
8.0.170.0060.00316.92
8.0.160.0040.00416.73
8.0.150.0050.00216.94
8.0.140.0000.00716.87
8.0.130.0060.00013.35
8.0.120.0000.00716.79
8.0.110.0040.00416.73
8.0.100.0040.00416.71
8.0.90.0070.00016.69
8.0.80.0070.01116.83
8.0.70.0040.00416.88
8.0.60.0040.00416.89
8.0.50.0070.00016.75
8.0.30.0100.00917.14
8.0.20.0100.01017.40
8.0.10.0030.00517.00
8.0.00.0130.01016.73
7.4.330.0000.00615.55
7.4.320.0000.00716.54
7.4.300.0030.00316.51
7.4.290.0070.00016.51
7.4.280.0040.00416.58
7.4.270.0050.00216.48
7.4.260.0100.00016.57
7.4.250.0000.00716.37
7.4.240.0000.00716.61
7.4.230.0000.00716.59
7.4.220.0050.00316.49
7.4.210.0060.01216.55
7.4.200.0070.00016.50
7.4.160.0100.00816.48
7.4.140.0100.00817.86
7.4.130.0090.00916.55
7.4.120.0080.01016.50
7.4.110.0130.00916.60
7.4.100.0090.00916.72
7.4.90.0140.00316.58
7.4.80.0070.01119.39
7.4.70.0150.00316.57
7.4.60.0050.01116.32
7.4.50.0090.00616.56
7.4.40.0030.01416.66
7.3.330.0050.00013.37
7.3.320.0030.00313.22
7.3.310.0000.00716.23
7.3.300.0000.00716.33
7.3.290.0030.00516.22
7.3.280.0070.00716.34
7.3.260.0130.00416.41
7.3.240.0120.00716.50
7.3.230.0140.00316.38
7.3.210.0060.00916.49
7.3.200.0100.00716.39
7.3.190.0110.00616.31
7.3.180.0080.00816.46
7.3.170.0080.01116.32
7.3.160.0090.00916.38
7.2.330.0040.01416.81
7.2.320.0150.00816.41
7.2.310.0140.00316.71
7.2.300.0100.00716.72
7.2.290.0060.01216.50

preferences:
52.32 ms | 401 KiB | 5 Q