3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set("memory_limit", "64m"); function test(&$x) { test($x); } $a=array(); test($a);

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.4.120.0480.01479.88
8.4.110.0340.01778.26
8.4.100.0440.01973.43
8.4.90.0420.01974.31
8.4.80.0400.01473.60
8.4.70.0370.01773.73
8.4.60.0400.00974.63
8.4.50.0510.01174.77
8.4.40.0400.02073.48
8.4.30.0200.02081.18
8.4.20.0160.01676.88
8.4.10.0240.01373.40
8.3.250.0520.01574.66
8.3.240.0350.00572.96
8.3.230.0440.00972.29
8.3.220.0440.00672.80
8.3.210.0410.00972.62
8.3.200.0300.01372.57
8.3.190.0320.01873.04
8.3.180.0500.01172.38
8.3.170.0190.03872.93
8.3.160.0430.02072.39
8.3.150.0680.00774.95
8.3.140.0470.00772.84
8.3.130.0350.00375.05
8.3.120.0670.02074.70
8.3.110.0710.00374.19
8.3.100.0420.01072.28
8.3.90.0310.01476.27
8.3.80.0480.01072.13
8.3.70.0730.01372.63
8.3.60.0560.02372.83
8.3.50.0670.01374.13
8.3.40.0260.01946.50
8.3.30.0260.01644.57
8.3.20.0160.00747.84
8.3.10.0200.00348.02
8.3.00.0100.01447.98
8.2.290.0420.01776.11
8.2.280.0440.01974.36
8.2.270.0500.01373.08
8.2.260.0590.01372.29
8.2.250.0320.00673.05
8.2.240.0410.01772.80
8.2.230.0400.01372.38
8.2.220.0910.01373.27
8.2.210.0500.01074.29
8.2.200.0470.01372.13
8.2.190.0540.01772.25
8.2.180.0580.01772.25
8.2.170.0340.01444.79
8.2.160.0330.00746.35
8.2.150.0190.00346.57
8.2.140.0130.00748.18
8.2.130.0200.00346.53
8.2.120.0040.00849.21
8.2.110.0230.00345.14
8.2.100.0280.00743.50
8.2.90.0100.01045.23
8.2.80.0100.01043.50
8.2.70.0180.01143.50
8.2.60.0190.00643.93
8.2.50.0130.00743.80
8.2.40.0130.00744.37
8.2.30.0070.01343.52
8.2.20.0080.01244.23
8.2.10.0130.00644.59
8.2.00.0130.00644.96
8.1.330.0340.01878.12
8.1.320.0420.01272.00
8.1.310.0780.01674.59
8.1.300.0490.00373.94
8.1.290.0390.00372.64
8.1.280.0710.01473.74
8.1.270.0110.01148.24
8.1.260.0220.00343.36
8.1.250.0170.00746.45
8.1.240.0150.00450.66
8.1.230.0290.00343.23
8.1.220.0100.01043.29
8.1.210.0160.00643.23
8.1.200.0150.00743.22
8.1.190.0200.00343.09
8.1.180.0070.01443.51
8.1.170.0100.01044.42
8.1.160.0190.00344.91
8.1.150.0240.00344.64
8.1.140.0130.00743.38
8.1.130.0120.00644.82
8.1.120.0100.01043.29
8.1.110.0060.01343.46
8.1.100.0140.00443.40
8.1.90.0150.00343.34
8.1.80.0100.01043.39
8.1.70.0140.01043.51
8.1.60.0130.00743.57
8.1.50.0150.00643.52
8.1.40.0200.01043.55
8.1.30.0100.01043.53
8.1.20.0180.00443.68
8.1.10.0100.02573.22
8.1.00.0220.01273.14
8.0.300.0190.01673.03
8.0.290.0190.01372.38
8.0.280.0210.01773.83
8.0.270.0350.00672.30
8.0.260.0300.01073.85
8.0.250.0210.01072.48
8.0.240.0130.01772.36
8.0.230.0200.02072.37
8.0.220.0210.02172.28
8.0.210.0100.02072.34
8.0.200.0220.00972.39
8.0.190.0170.01772.38
8.0.180.0260.01672.38
8.0.170.0380.00772.42
8.0.160.0340.01072.41
8.0.150.0270.00772.26
8.0.140.0330.01072.38
8.0.130.0210.01068.91
8.0.120.0200.01772.28
8.0.110.0190.01272.34
8.0.100.0270.00772.41
8.0.90.0190.01372.30
8.0.80.0190.01372.29
8.0.70.0260.01072.35
8.0.60.0230.01072.36
8.0.50.0190.01372.34
8.0.30.0240.00772.25
8.0.20.0130.02072.39
8.0.10.0190.01672.50
8.0.00.0230.01372.35
7.4.330.0260.01068.91
7.4.320.0140.01771.93
7.4.300.0340.00772.03
7.4.290.0220.01372.05
7.4.280.0220.01372.02
7.4.270.0270.01771.92
7.4.260.0320.01168.91
7.4.250.0170.01771.98
7.4.240.0130.02072.11
7.4.230.0250.00772.09
7.4.220.0170.01772.00
7.4.210.0220.01072.19
7.4.200.0160.01672.10
7.4.190.0200.01372.12
7.4.180.0150.01571.83
7.4.160.0230.00772.01
7.4.150.0160.01672.11
7.4.140.0140.01772.11
7.4.130.0200.01072.07
7.4.120.0220.01071.92
7.4.110.0200.01372.00
7.4.100.0280.00372.00
7.4.90.0210.01472.06
7.4.80.0220.01172.00
7.4.70.0180.01471.85
7.4.60.0250.00672.14
7.4.50.0260.00771.70
7.4.40.0170.01771.65
7.4.30.0130.02071.82
7.4.20.0220.00972.25
7.4.10.0200.01372.08
7.4.00.0120.02372.32
7.3.330.0400.01071.82
7.3.320.0220.01968.64
7.3.310.0150.01871.71
7.3.300.0240.00771.71
7.3.290.0290.00671.76
7.3.280.0160.02071.75
7.3.270.0140.02271.79
7.3.260.0140.01871.71
7.3.250.0260.00771.60
7.3.240.0210.01871.56
7.3.230.0200.01371.71
7.3.220.0160.01671.55
7.3.210.0210.01071.55
7.3.200.0190.01071.55
7.3.190.0200.01071.52
7.3.180.0230.00771.69
7.3.170.0130.01671.54
7.3.160.0100.02071.68
7.3.150.0210.01171.71
7.3.140.0170.01371.64
7.3.130.0240.00771.75
7.3.120.0130.01671.68
7.3.110.0150.01571.66
7.3.100.0170.01371.66
7.3.90.0100.02071.92
7.3.80.0200.01071.56
7.3.70.0160.01371.71
7.3.60.0180.01171.93
7.3.50.0100.02171.86
7.3.40.0220.00771.85
7.3.30.0200.01071.92
7.3.20.0580.00672.20
7.3.10.0340.01772.06
7.3.00.0490.01672.13

preferences:
29.14 ms | 403 KiB | 5 Q