3v4l.org

run code in 300+ PHP versions simultaneously
<?php function x() { $f = create_function('$a,$b', 'return $a*$b;'); return $f; } function y() { while (true) x(); } y();

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.0040.01118.55
8.3.50.0100.01018.06
8.3.40.0070.00718.67
8.3.30.0100.00319.01
8.3.20.0040.00420.21
8.3.10.0030.00620.54
8.3.00.0060.00319.56
8.2.180.0160.00616.63
8.2.170.0170.00322.96
8.2.160.0030.01020.33
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.09
8.2.110.0040.00420.35
8.2.100.0040.00818.16
8.2.90.0080.00018.99
8.2.80.0040.00417.97
8.2.70.0070.00417.50
8.2.60.0030.00717.68
8.2.50.0000.00818.07
8.2.40.0040.00418.03
8.2.30.0050.00219.12
8.2.20.0040.00417.67
8.2.10.0000.00818.00
8.2.00.0090.00017.58
8.1.280.0170.00325.92
8.1.270.0090.00023.91
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0070.00322.18
8.1.230.0090.00319.09
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0050.00517.36
8.1.190.0030.00617.10
8.1.180.0030.00618.10
8.1.170.0000.00818.58
8.1.160.0040.00421.85
8.1.150.0070.00018.77
8.1.140.0000.00817.24
8.1.130.0000.00717.76
8.1.120.0040.00317.32
8.1.110.0090.00017.30
8.1.100.0070.00017.37
8.1.90.0050.00317.39
8.1.80.0000.00717.21
8.1.70.0000.00717.21
8.1.60.0040.00417.52
8.1.50.0050.00217.50
8.1.40.0040.00417.32
8.1.30.0080.00017.57
8.1.20.0000.00717.57
8.1.10.0000.00717.36
8.1.00.0030.00517.39
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.29
8.0.270.0000.00717.18
8.0.260.0070.00017.18
8.0.250.0000.00716.88
8.0.240.0030.00316.99
8.0.230.0000.00716.92
8.0.220.0000.00716.91
8.0.210.0030.00316.88
8.0.200.0030.00516.90
8.0.190.0000.01117.02
8.0.180.0040.00416.96
8.0.170.0000.00716.81
8.0.160.0030.00316.84
8.0.150.0000.00816.70
8.0.140.0030.00316.72
8.0.130.0030.00313.30
8.0.120.0050.00316.86
8.0.110.0000.00816.81
8.0.100.0050.00216.77
8.0.90.0040.00416.75
8.0.80.0080.00816.91
8.0.70.0000.00816.73
8.0.60.0000.00716.99
8.0.50.0000.00716.92
8.0.30.0160.00817.18
8.0.20.0110.00917.40
8.0.10.0040.00416.96
8.0.00.0110.00816.72
7.4.330.0030.00315.19
7.4.320.0000.00916.54
7.4.300.0030.00616.71
7.4.290.0030.00616.70
7.4.280.0030.00616.74
7.4.270.0000.01016.63
7.4.260.0000.00916.57
7.4.250.0000.00916.66
7.4.240.0030.00616.56
7.4.230.0000.00916.50
7.4.220.0120.01316.70
7.4.210.0040.01616.65
7.4.200.0030.00616.77
7.4.160.0030.02016.53
7.4.150.0200.01717.40
7.4.140.0200.01717.86
7.4.130.0120.01616.59
7.4.120.0150.01116.86
7.4.110.0110.01416.48
7.4.100.0190.00916.61
7.4.90.0170.01916.74
7.4.80.0130.01616.59
7.4.70.0080.01616.80
7.4.60.0160.00616.56
7.4.50.0070.00316.66
7.4.40.0060.01816.57
7.4.30.0160.01016.84
7.4.00.0000.01815.12
7.3.330.0430.497133.33
7.3.320.0400.517133.30
7.3.310.0060.00316.27
7.3.300.0070.00716.96
7.3.290.0070.02316.47
7.3.280.0090.01316.50
7.3.270.0140.02017.40
7.3.260.0180.02416.57
7.3.250.0190.01616.68
7.3.240.0070.02316.84
7.3.230.0070.02416.47
7.3.210.0170.01316.56
7.3.200.0070.02219.39
7.3.190.0000.03016.76
7.3.180.0090.01816.61
7.3.170.0100.01516.66
7.3.160.0130.01316.81
7.2.330.0160.00916.91
7.2.320.0220.01416.95
7.2.310.0130.02016.66
7.2.300.0150.02216.56
7.2.290.0180.01116.97
7.2.60.0070.01316.56
7.2.00.0040.01219.13
7.1.200.2680.31580.70
7.1.101.0430.06730.62
7.1.71.1080.27683.21
7.1.60.0400.29483.84
7.1.50.0880.23583.24
7.0.200.0640.26183.23

preferences:
49.07 ms | 400 KiB | 5 Q