3v4l.org

run code in 300+ PHP versions simultaneously
<?php function buildHash($test = 1) { if ($test > 10) { echo "made it"; } else { echo $test; } buildHash(++$test); } buildHash();

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.70.0230.00317.95
8.3.60.0120.00918.43
8.3.50.0140.01622.04
8.3.40.0200.01319.34
8.3.30.0150.00919.63
8.3.20.0130.00020.94
8.3.10.0080.00423.70
8.3.00.0090.00320.87
8.2.180.0130.01017.25
8.2.170.0140.01022.96
8.2.160.0160.00921.14
8.2.150.0160.00324.18
8.2.140.0060.00624.66
8.2.130.0080.00426.16
8.2.120.0090.00320.73
8.2.110.0100.00322.27
8.2.100.0100.00620.98
8.2.90.0180.00020.56
8.2.80.0040.00718.13
8.2.70.0070.00318.38
8.2.60.0080.00618.80
8.2.50.0040.00718.13
8.2.40.0090.00019.76
8.2.30.0060.00318.89
8.2.20.0060.00318.22
8.2.10.0090.01319.86
8.2.00.0070.00318.47
8.1.280.0180.00425.92
8.1.270.0070.00723.96
8.1.260.0090.00326.35
8.1.250.0070.00728.09
8.1.240.0130.00023.96
8.1.230.0100.00719.60
8.1.220.0040.01119.41
8.1.210.0090.00018.77
8.1.200.0190.00518.97
8.1.190.0070.00317.86
8.1.180.0080.00418.10
8.1.170.0030.00619.19
8.1.160.0000.00922.57
8.1.150.0100.01020.42
8.1.140.0100.00018.03
8.1.130.0070.00318.63
8.1.120.0090.00017.95
8.1.110.0000.00917.92
8.1.100.0060.00318.05
8.1.90.0030.00617.93
8.1.80.0030.00618.03
8.1.70.0030.00718.34
8.1.60.0060.00318.19
8.1.50.0080.00318.05
8.1.40.0040.00718.20
8.1.30.0000.01018.19
8.1.20.0070.00418.68
8.1.10.0030.00718.25
8.1.00.0070.00318.05
8.0.300.0090.00318.77
8.0.290.0030.00618.37
8.0.280.0070.00720.21
8.0.270.0070.00317.88
8.0.260.0060.00317.68
8.0.250.0090.00017.39
8.0.240.0000.00917.43
8.0.230.0040.00417.43
8.0.220.0030.00717.49
8.0.210.0090.00017.46
8.0.200.0040.00417.45
8.0.190.0100.00017.38
8.0.180.0030.00717.36
8.0.170.0030.00717.40
8.0.160.0030.00617.38
8.0.150.0030.00617.27
8.0.140.0080.00317.64
8.0.130.0040.00413.88
8.0.120.0090.00017.31
8.0.110.0110.00017.27
8.0.100.0090.00017.46
8.0.90.0030.00617.54
8.0.80.0170.02017.73
8.0.70.0090.00017.46
8.0.60.0030.00617.53
8.0.50.0030.00617.48
8.0.30.0440.02418.65
8.0.20.0400.01418.00
8.0.10.0030.00617.47
8.0.00.0400.03018.33
7.4.330.0070.00015.00
7.4.320.0000.00816.87
7.4.300.0030.00717.10
7.4.290.0090.00016.87
7.4.280.0040.00416.85
7.4.270.0070.00316.92
7.4.260.0140.00317.99
7.4.250.0090.00016.88
7.4.240.0060.00317.00
7.4.230.0060.00317.30
7.4.220.0100.01917.24
7.4.210.0230.00017.23
7.4.200.0060.00316.87
7.4.160.0780.02318.39
7.4.150.0530.01918.10
7.4.140.0300.02718.02
7.4.130.0440.02517.73
7.4.120.0280.01017.13
7.4.110.0240.02717.07
7.4.100.0790.02718.23
7.4.90.0200.01317.16
7.4.80.0420.01419.39
7.4.70.0140.02517.38
7.4.60.0610.01518.29
7.4.50.0080.00416.90
7.4.40.0220.00917.38
7.4.30.0380.03118.20
7.3.330.0030.00714.45
7.3.320.0090.00013.96
7.3.310.0000.00816.86
7.3.300.0000.00916.98
7.3.290.0070.02317.45
7.3.280.0240.01116.79
7.3.270.0270.00717.40
7.3.260.0470.01518.06
7.3.250.0380.02317.67
7.3.240.0540.01318.15
7.3.230.0410.02518.15
7.3.210.0530.03518.30
7.3.200.0700.03819.39
7.3.190.0120.02417.25
7.3.180.0290.00717.16
7.3.170.0310.03218.12
7.3.160.0230.01117.09
7.2.330.0590.02118.29
7.2.320.0400.03518.37
7.2.310.0850.02418.36
7.2.300.0100.02617.78
7.2.290.0260.01017.59
7.2.100.4160.01916.03
7.2.90.2070.00915.37
7.2.80.3600.01016.09
7.2.70.3590.01016.39
7.2.60.2660.00815.77
7.2.50.3550.01816.16
7.2.40.2010.02016.86
7.2.30.0540.01516.54
7.2.20.0390.01615.73
7.2.10.2270.01316.20
7.2.00.1390.02116.60
7.1.220.1800.01315.34
7.1.210.2030.01014.75
7.1.200.2670.02115.25
7.1.190.3710.00715.18
7.1.180.1590.01314.79
7.1.170.3280.01414.73
7.1.160.0520.01715.41
7.1.150.2370.01915.08
7.1.140.2040.02514.98
7.1.130.1690.00314.22
7.1.120.1750.01314.98
7.1.110.1630.00714.02
7.1.100.1690.01115.20
7.1.90.1310.01314.69
7.1.80.2510.00315.08
7.1.70.1660.01815.18
7.1.60.0430.00632.53
7.1.50.1700.02333.38
7.1.40.1820.01433.58
7.1.30.2180.01633.35
7.1.20.1080.01033.73
7.1.10.1410.01315.55
7.1.00.1360.01814.52
7.0.310.1960.01014.73
7.0.300.0950.00614.23
7.0.290.1500.01014.09
7.0.280.2770.01014.62
7.0.270.1790.01315.34
7.0.260.2330.02214.76
7.0.250.1860.01013.89
7.0.240.3030.00615.02
7.0.230.1050.01314.83
7.0.220.0180.01114.01
7.0.210.1290.02115.68
7.0.200.1210.01515.59
7.0.190.1530.01015.67
7.0.180.1540.01315.83
7.0.170.0700.01015.43
7.0.160.1250.01614.87
7.0.150.0670.00915.75
7.0.140.0500.00714.32
7.0.130.0620.00415.50
7.0.120.0590.01315.79
7.0.110.1470.00014.42
7.0.100.1310.00315.00
7.0.90.0470.00015.09
7.0.80.1710.01615.00
7.0.70.0230.00714.06
7.0.60.0750.01214.25
7.0.50.1210.00614.33
7.0.40.1160.01414.94
7.0.30.0240.00414.32
7.0.20.2290.01014.94
5.6.380.0330.01318.74
5.6.370.0110.01915.67
5.6.360.0330.02317.94
5.6.350.0330.01718.43
5.6.340.0160.01115.66
5.6.330.0260.00315.82
5.6.320.0170.01115.53
5.6.310.0300.02018.66
5.6.300.0170.00916.01
5.6.290.0290.01618.90
5.6.280.0240.00615.63
5.6.270.0160.00616.03
5.6.260.0310.01718.74
5.6.250.0150.00915.63
5.6.240.0080.02616.25
5.6.230.0200.02618.73
5.6.220.0190.00815.84
5.6.210.0160.01115.47
5.6.200.0130.01115.73
5.6.190.0090.01415.57
5.6.180.0120.01215.13
5.6.170.0450.01817.92
5.5.380.0280.02015.42
5.5.370.0140.00712.73
5.5.360.0120.01212.45
5.5.350.0500.01315.51
5.5.340.0270.01315.43
5.5.330.0190.00813.50
5.5.320.0300.01915.65
5.5.310.0290.00312.67

preferences:
49.93 ms | 401 KiB | 5 Q