3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace x { foreach([1,2] as $i) { static $s = 0; print $s + $i; ++$s; } } // 13 ?>

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.5.60.0110.00816.77
8.5.50.0090.00418.59
8.5.30.0080.00918.04
8.5.20.0090.00919.43
8.5.10.0120.00716.69
8.5.00.0140.00719.81
8.4.210.0040.00521.49
8.4.180.0170.00619.68
8.4.170.0130.00723.91
8.4.160.0130.00824.02
8.4.150.0060.00616.76
8.4.140.0120.00917.45
8.4.130.0110.00617.45
8.4.120.0080.00123.98
8.4.110.0150.00522.41
8.4.100.0100.00917.67
8.4.90.0070.00918.50
8.4.80.0100.01117.59
8.4.70.0080.00317.85
8.4.60.0070.00820.55
8.4.50.0300.00817.31
8.4.40.0280.00617.49
8.4.30.0190.00517.41
8.4.20.0230.01017.57
8.4.10.0190.00417.48
8.3.300.0070.00718.50
8.3.290.0130.00820.14
8.3.280.0110.00918.50
8.3.270.0150.00516.74
8.3.260.0120.00816.79
8.3.250.0080.01119.16
8.3.240.0110.00919.08
8.3.230.0110.00816.79
8.3.220.0110.00817.32
8.3.210.0130.00516.62
8.3.200.0060.00316.40
8.3.190.0230.00616.36
8.3.180.0160.00516.46
8.3.170.0190.00416.38
8.3.160.0170.00516.31
8.3.150.0180.00416.36
8.3.140.0170.00416.46
8.3.130.0150.00516.43
8.3.120.0170.00316.53
8.3.110.0130.00516.47
8.3.100.0180.00316.34
8.3.90.0160.00516.42
8.3.80.0160.00416.19
8.3.70.0160.00416.42
8.3.60.0160.00516.43
8.3.50.0190.00416.42
8.3.40.0180.00317.34
8.3.30.0160.00417.57
8.3.20.0120.00517.53
8.3.10.0280.00917.53
8.3.00.0180.01017.39
8.2.300.0110.00922.18
8.2.290.0110.00720.25
8.2.280.0170.00616.39
8.2.270.0200.00516.33
8.2.260.0160.00416.16
8.2.250.0230.00316.26
8.2.240.0210.00516.48
8.2.230.0180.00416.50
8.2.220.0150.00516.43
8.2.210.0210.00316.18
8.2.200.0150.00816.42
8.2.190.0150.00416.32
8.2.180.0120.00616.43
8.2.170.0170.00317.60
8.2.160.0150.00517.63
8.2.150.0150.00417.44
8.2.140.0160.00417.48
8.2.130.0160.00617.42
8.2.120.0150.00417.50
8.2.110.0200.00417.62
8.2.100.0200.00717.50
8.2.90.0250.00417.55
8.2.80.0190.00317.44
8.2.70.0150.00517.47
8.2.60.0150.00717.56
8.2.50.0190.00517.35
8.2.40.0180.00817.55
8.2.30.0200.00817.43
8.2.20.0160.00517.38
8.2.10.0190.00417.39
8.2.00.0230.00617.56
8.1.340.0120.01017.61

preferences:
56.53 ms | 843 KiB | 5 Q