3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test2($random) { if ($random) test2a(); else test2b(); }

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.01018.18
8.3.50.0100.00318.05
8.3.40.0070.00718.63
8.3.30.0150.00318.54
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0060.01226.16
8.2.180.0090.01325.92
8.2.170.0090.00618.66
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00026.35
8.2.110.0100.00020.43
8.2.100.0080.00317.72
8.2.90.0040.00420.54
8.2.80.0000.00718.09
8.2.70.0050.00317.80
8.2.60.0000.00817.97
8.2.50.0050.00318.10
8.2.40.0050.00320.90
8.2.30.0000.00719.12
8.2.20.0030.00617.92
8.2.10.0000.00819.00
8.2.00.0000.00719.02
8.1.280.0060.01225.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0090.00028.09
8.1.240.0100.00023.82
8.1.230.0100.00320.75
8.1.220.0000.00817.74
8.1.210.0030.00718.97
8.1.200.0000.00817.23
8.1.190.0040.00416.97
8.1.180.0040.00418.10
8.1.170.0080.00018.52
8.1.160.0040.00418.78
8.1.150.0040.00418.77
8.1.140.0050.00320.46
8.1.130.0060.00317.27
8.1.120.0040.00417.21
8.1.110.0030.00617.36
8.1.100.0080.00017.26
8.1.90.0040.00417.24
8.1.80.0070.00417.36
8.1.70.0000.00717.22
8.1.60.0040.00817.35
8.1.50.0080.00017.41
8.1.40.0040.00417.31
8.1.30.0000.00817.52
8.1.20.0050.00317.56
8.1.10.0040.00717.43
8.1.00.0040.00417.37
8.0.300.0040.00419.85
8.0.290.0040.00416.58
8.0.280.0030.00318.36
8.0.270.0030.00316.70
8.0.260.0000.00716.76
8.0.250.0000.00816.88
8.0.240.0070.00316.88
8.0.230.0070.00016.70
8.0.220.0040.00416.79
8.0.210.0040.00416.82
8.0.200.0000.00616.72
8.0.190.0070.00016.69
8.0.180.0070.00016.80
8.0.170.0070.00416.75
8.0.160.0000.00716.83
8.0.150.0000.00716.80
8.0.140.0000.00816.66
8.0.130.0000.00513.17
8.0.120.0040.00416.73
8.0.110.0040.00416.70
8.0.100.0040.00416.72
8.0.90.0050.00216.83
8.0.80.0080.00816.72
8.0.70.0000.00716.66
8.0.60.0040.00416.71
8.0.50.0030.00516.64
8.0.30.0110.01116.91
8.0.20.0210.01016.96
8.0.10.0180.01116.61
8.0.00.0110.00817.08
7.4.330.0050.00015.55
7.4.320.0060.00016.34
7.4.300.0050.00316.44
7.4.290.0000.00716.20
7.4.280.0090.00316.45
7.4.270.0000.00716.36
7.4.260.0030.00313.13
7.4.250.0070.00016.35
7.4.240.0000.00716.40
7.4.230.0000.00716.51
7.4.220.0070.00016.51
7.4.210.0050.00916.51
7.4.200.0040.00416.27
7.4.150.0190.00916.27
7.4.140.0110.01616.14
7.4.130.0130.01316.16
7.4.120.0180.00716.32
7.4.110.0060.02016.27
7.4.100.0080.01516.39
7.4.90.0200.00616.20
7.4.80.0090.01516.34
7.4.70.0110.01116.41
7.4.60.0150.00816.31
7.4.50.0100.01316.25
7.4.40.0100.01416.07
7.4.30.0160.00316.17
7.4.20.0120.01716.30
7.4.10.0030.01616.30
7.4.00.0210.00316.37
7.3.330.0030.00516.25
7.3.320.0000.00513.19
7.3.310.0040.00416.11
7.3.300.0070.00016.05
7.3.290.0100.00416.13
7.3.270.0090.01616.14
7.3.260.0160.00416.30
7.3.250.0080.01515.84
7.3.240.0180.00516.03
7.3.230.0100.01316.41
7.3.220.0150.01116.16
7.3.210.0080.01516.25
7.3.200.0110.01016.03
7.3.190.0160.00716.35
7.3.180.0120.01316.04
7.3.170.0180.00416.13
7.3.160.0100.01016.17
7.3.150.0130.00716.17
7.3.140.0080.01516.41
7.3.130.0140.00716.18
7.3.120.0150.00916.13
7.3.110.0150.00716.16
7.3.100.0100.01316.24
7.3.90.0070.01516.19
7.3.80.0140.01016.29
7.3.70.0150.00916.28
7.3.60.0060.01916.00
7.3.50.0090.01216.14
7.3.40.0120.01516.13
7.3.30.0130.01315.95
7.3.20.0140.00616.20
7.3.10.0140.01716.21
7.3.00.0200.00616.13

preferences:
62.16 ms | 400 KiB | 5 Q