3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($cl){ $cl->t(); } test(new class { public function t($t) { echo $t; } });

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.0190.00318.56
8.3.50.0070.00716.29
8.3.40.0040.01218.66
8.3.30.0110.00418.64
8.3.20.0000.00820.53
8.3.10.0040.00421.73
8.3.00.0000.01122.44
8.2.180.0120.00916.63
8.2.170.0090.00622.96
8.2.160.0140.00618.73
8.2.150.0070.01124.18
8.2.140.0070.00724.66
8.2.130.0100.00720.39
8.2.120.0050.00326.35
8.2.110.0140.00722.25
8.2.100.0090.00317.84
8.2.90.0050.00718.84
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0030.00617.80
8.2.50.0070.00019.12
8.2.40.0030.00720.45
8.2.30.0000.00719.19
8.2.20.0070.00017.92
8.2.10.0050.00218.08
8.2.00.0070.00018.11
8.1.280.0130.00325.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0160.00620.99
8.1.230.0070.00419.20
8.1.220.0080.00017.78
8.1.210.0000.01018.77
8.1.200.0050.00517.23
8.1.190.0040.00417.35
8.1.180.0090.00018.10
8.1.170.0060.00318.50
8.1.160.0070.00018.83
8.1.150.0030.00520.27
8.1.140.0000.00719.51
8.1.130.0040.00418.82
8.1.120.0030.00417.36
8.1.110.0040.00417.30
8.1.100.0040.00417.40
8.1.90.0030.00717.41
8.1.80.0040.00417.40
8.1.70.0030.00317.39
8.1.60.0040.00417.50
8.1.50.0000.00917.36
8.1.40.0040.00417.41
8.1.30.0060.00317.36
8.1.20.0040.00417.42
8.1.10.0080.00017.41
8.1.00.0040.00417.39
8.0.300.0000.00720.08
8.0.290.0030.00616.75
8.0.280.0000.00718.44
8.0.270.0040.00417.25
8.0.260.0030.00319.00
8.0.250.0000.00816.98
8.0.240.0000.00816.91
8.0.230.0030.00617.00
8.0.220.0050.00217.00
8.0.210.0000.00716.93
8.0.200.0040.00416.90
8.0.190.0090.00017.01
8.0.180.0050.00217.03
8.0.170.0030.00316.91
8.0.160.0000.00716.85
8.0.150.0090.00316.79
8.0.140.0040.00416.81
8.0.130.0000.00513.38
8.0.120.0040.00416.87
8.0.110.0050.00316.82
8.0.100.0030.00316.77
8.0.90.0040.00416.89
8.0.80.0060.00916.99
8.0.70.0040.00416.83
8.0.60.0040.00416.88
8.0.50.0050.00216.83
8.0.30.0130.00716.95
8.0.20.0110.00917.40
8.0.10.0040.00416.83
8.0.00.0090.01216.90
7.4.330.0030.00215.55
7.4.320.0030.00316.53
7.4.300.0000.00616.54
7.4.290.0030.00316.53
7.4.280.0000.00916.46
7.4.270.0070.00016.50
7.4.260.0030.00316.41
7.4.250.0070.00016.50
7.4.240.0030.00316.57
7.4.230.0040.00316.33
7.4.220.0090.00916.61
7.4.210.0100.00716.50
7.4.200.0030.00316.53
7.4.160.0100.00616.44
7.4.150.0060.01217.40
7.4.140.0130.00717.86
7.4.130.0090.00916.72
7.4.120.0100.01016.52
7.4.110.0100.00816.70
7.4.100.0160.00316.36
7.4.90.0130.00316.73
7.4.80.0070.01019.39
7.4.70.0100.00716.63
7.4.60.0100.00716.55
7.4.50.0000.01116.27
7.4.40.0090.01616.56
7.4.30.0150.00016.18
7.4.00.0180.00015.10
7.3.330.0060.00013.18
7.3.320.0000.00513.32
7.3.310.0000.00716.18
7.3.300.0040.00416.35
7.3.290.0060.01016.35
7.3.280.0090.01016.33
7.3.270.0110.00717.40
7.3.260.0080.00916.45
7.3.240.0110.00916.56
7.3.230.0090.00916.54
7.3.210.0100.01316.29
7.3.200.0130.00316.45
7.3.190.0140.00516.33
7.3.180.0090.00916.59
7.3.170.0150.00016.35
7.3.160.0120.00316.30
7.2.330.0060.01516.56
7.2.320.0070.01016.53
7.2.310.0100.00716.58
7.2.300.0060.00916.60
7.2.290.0060.00916.42
7.2.60.0080.00316.54
7.2.00.0180.00518.74
7.1.200.0030.01015.63
7.1.70.0060.00617.01
7.1.60.0130.00017.19
7.1.50.0170.01034.33
7.1.40.0130.01334.11
7.1.30.0100.01334.25
7.1.20.0130.01334.36
7.1.10.0030.01016.24
7.1.00.0070.01016.55
7.0.200.0100.00716.66
7.0.190.0070.00316.33
7.0.180.0070.00716.00
7.0.170.0000.01015.96
7.0.160.0030.01016.00
7.0.150.0070.00316.11
7.0.140.0030.01316.17
7.0.130.0000.01016.27
7.0.120.0030.01016.23
7.0.110.0030.01016.18
7.0.100.0000.01316.08
7.0.90.0070.00716.25
7.0.80.0000.01016.17
7.0.70.0030.01316.05
7.0.60.0030.00715.94
7.0.50.0070.01016.13
7.0.40.0030.00716.14
7.0.30.0070.01016.27
7.0.20.0030.01016.34
7.0.10.0070.00716.13
7.0.00.0070.00316.19

preferences:
37.12 ms | 400 KiB | 5 Q