3v4l.org

run code in 300+ PHP versions simultaneously
<?php class school { public function test($a1=0, $a=0) { } } $item = new school(); $item->test(true, true); $item->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.3.60.0100.00718.18
8.3.50.0120.01221.11
8.3.40.0100.00618.38
8.3.30.0070.01018.68
8.3.20.0040.00420.25
8.3.10.0000.01523.40
8.3.00.0040.00423.56
8.2.180.0280.00316.32
8.2.170.0120.00922.96
8.2.160.0060.00820.38
8.2.150.0070.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00419.32
8.2.120.0140.00426.35
8.2.110.0050.00521.93
8.2.100.0060.00617.80
8.2.90.0050.00319.03
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0030.00522.33
8.2.30.0040.00420.62
8.2.20.0050.00317.73
8.2.10.0070.00018.01
8.2.00.0000.00917.86
8.1.280.0110.00725.92
8.1.270.0090.00620.37
8.1.260.0120.00628.09
8.1.250.0080.00028.09
8.1.240.0110.00022.14
8.1.230.0110.00019.10
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0000.00818.54
8.1.160.0040.00420.71
8.1.150.0070.00018.66
8.1.140.0060.00319.55
8.1.130.0030.00317.55
8.1.120.0070.00017.38
8.1.110.0000.00817.33
8.1.100.0040.00417.30
8.1.90.0050.00217.34
8.1.80.0050.00217.42
8.1.70.0030.00317.37
8.1.60.0040.00417.46
8.1.50.0040.00417.54
8.1.40.0030.00617.40
8.1.30.0050.00317.64
8.1.20.0000.00817.47
8.1.10.0070.00017.41
8.1.00.0030.00617.44
8.0.300.0070.00018.77
8.0.290.0060.00316.63
8.0.280.0000.00718.31
8.0.270.0030.00317.23
8.0.260.0030.00317.25
8.0.250.0070.00016.85
8.0.240.0030.00316.75
8.0.230.0000.00716.81
8.0.220.0050.00316.74
8.0.210.0000.00716.71
8.0.200.0030.00316.82
8.0.190.0060.00316.84
8.0.180.0050.00216.84
8.0.170.0040.00416.75
8.0.160.0040.00416.78
8.0.150.0000.00716.84
8.0.140.0000.00816.80
8.0.130.0090.00013.29
8.0.120.0050.00316.78
8.0.110.0040.00416.81
8.0.100.0050.00216.82
8.0.90.0000.00816.93
8.0.80.0070.01416.82
8.0.70.0000.00716.61
8.0.60.0040.00416.70
8.0.50.0000.00716.86
8.0.30.0050.01216.97
8.0.20.0090.01017.40
8.0.10.0030.00516.93
8.0.00.0110.00816.75
7.4.330.0050.00016.74
7.4.320.0030.00316.52
7.4.300.0030.00316.49
7.4.290.0000.00716.60
7.4.280.0070.00016.60
7.4.270.0040.00416.57
7.4.260.0030.00316.47
7.4.250.0030.00416.37
7.4.240.0040.00316.63
7.4.230.0030.00316.59
7.4.220.0150.00716.45
7.4.210.0070.00716.61
7.4.200.0000.00816.71
7.4.160.0060.00916.27
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0110.00816.45
7.4.120.0050.01616.53
7.4.110.0110.00716.42
7.4.100.0100.01216.45
7.4.90.0030.02216.28
7.4.80.0080.01219.39
7.4.70.0170.00016.33
7.4.60.0030.01316.36
7.4.50.0100.00716.46
7.4.40.0090.00816.56
7.4.30.0060.01016.27
7.4.00.0130.00314.97
7.3.330.0060.00013.23
7.3.320.0030.00313.19
7.3.310.0070.00016.13
7.3.300.0070.00016.11
7.3.290.0120.00316.26
7.3.280.0080.00816.26
7.3.270.0070.01117.40
7.3.260.0060.01016.42
7.3.250.0120.00616.16
7.3.240.0100.00716.34
7.3.230.0150.00316.39
7.3.210.0090.00616.15
7.3.200.0090.01216.52
7.3.190.0070.01016.36
7.3.180.0060.01016.63
7.3.170.0130.00316.27
7.3.160.0030.01216.41
7.3.10.0060.00616.50
7.3.00.0110.00416.35
7.2.330.0090.00916.60
7.2.320.0100.01616.72
7.2.310.0150.00316.63
7.2.300.0130.00716.41
7.2.290.0120.00416.68
7.2.130.0060.00316.90
7.2.120.0070.01016.76
7.2.110.0090.00616.46
7.2.100.0070.00316.75
7.2.90.0100.00316.52
7.2.80.0120.00316.54
7.2.70.0070.01116.91
7.2.60.0050.00916.71
7.2.50.0030.00616.58
7.2.40.0090.00616.70
7.2.30.0040.00816.64
7.2.20.0060.00616.55
7.2.10.0070.00716.98
7.2.00.0190.00817.90
7.1.250.0060.00615.64
7.1.200.0030.00915.50
7.1.100.0030.01018.01
7.1.70.0000.00717.19
7.1.60.0070.01819.52
7.1.50.0030.02216.53
7.1.00.0000.08022.33
7.0.200.0030.00616.71
7.0.60.0030.04019.92
7.0.50.0030.04317.88
7.0.40.0100.04320.24
7.0.30.0230.08720.19
7.0.20.0200.05720.04
7.0.10.0070.07720.16
7.0.00.0030.08320.20
5.6.280.0000.07020.91
5.6.210.0070.08020.77
5.6.200.0130.06718.19
5.6.190.0030.04720.69
5.6.180.0200.08320.77
5.6.170.0170.05320.47
5.6.160.0030.08720.41
5.6.150.0030.08018.17
5.6.140.0030.08318.28
5.6.130.0070.09018.16
5.6.120.0130.06021.12
5.6.110.0070.08021.00
5.6.100.0100.08021.12
5.6.90.0170.07320.98
5.6.80.0170.04720.52
5.5.350.0270.08020.39
5.5.340.0130.07717.99
5.5.330.0100.04020.27
5.5.320.0300.07320.24
5.5.310.0270.04720.31
5.5.300.0070.04317.97
5.5.290.0170.05017.98
5.5.280.0130.08020.98
5.5.270.0100.08320.88
5.5.260.0130.05720.76
5.5.250.0130.07720.59
5.5.240.0170.02720.27

preferences:
69.91 ms | 401 KiB | 5 Q