3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($x) { echo $x; } $funs = array(); for ($i=0; $i<10; $i++) { $funs[] = f($i); } for ($i=0; $i<10; $i++) { $g = $funs[$i]; //$g(); }

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.43
8.3.50.0110.01121.14
8.3.40.0070.00718.79
8.3.30.0110.00419.21
8.3.20.0050.00320.16
8.3.10.0080.00022.13
8.3.00.0060.00322.36
8.2.180.0060.00916.63
8.2.170.0120.00622.96
8.2.160.0170.00020.47
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0160.00326.16
8.2.120.0030.00717.93
8.2.110.0030.00622.25
8.2.100.0110.00019.21
8.2.90.0040.00419.35
8.2.80.0050.00319.25
8.2.70.0040.00417.63
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0000.00818.05
8.2.30.0000.00818.13
8.2.20.0020.00517.79
8.2.10.0070.00017.75
8.2.00.0040.00417.65
8.1.280.0110.00425.92
8.1.270.0080.00020.48
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0080.00419.15
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.41
8.1.180.0060.00320.14
8.1.170.0050.00518.36
8.1.160.0000.00722.12
8.1.150.0060.00318.52
8.1.140.0070.00017.39
8.1.130.0030.00317.94
8.1.120.0030.00517.34
8.1.110.0040.00417.30
8.1.100.0000.00717.45
8.1.90.0000.00817.42
8.1.80.0000.00817.29
8.1.70.0080.00017.41
8.1.60.0000.00817.50
8.1.50.0040.00417.52
8.1.40.0040.00417.41
8.1.30.0070.00017.54
8.1.20.0030.00617.62
8.1.10.0000.00717.53
8.1.00.0030.00717.48
8.0.300.0070.00018.77
8.0.290.0040.00417.18
8.0.280.0000.00818.39
8.0.270.0040.00417.37
8.0.260.0070.00016.86
8.0.250.0070.00016.95
8.0.240.0050.00516.93
8.0.230.0070.00016.91
8.0.220.0020.00516.84
8.0.210.0000.00716.73
8.0.200.0000.00616.80
8.0.190.0000.00816.88
8.0.180.0080.00016.77
8.0.170.0040.00416.79
8.0.160.0000.00916.95
8.0.150.0040.00416.78
8.0.140.0040.00416.67
8.0.130.0060.00013.32
8.0.120.0040.00416.70
8.0.110.0040.00416.86
8.0.100.0040.00416.69
8.0.90.0070.00016.79
8.0.80.0090.00916.82
8.0.70.0040.00416.82
8.0.60.0050.00216.76
8.0.50.0000.00716.90
8.0.30.0090.01116.99
8.0.20.0130.00617.40
8.0.10.0000.00716.99
8.0.00.0110.00716.93
7.4.330.0000.00515.00
7.4.320.0030.00316.47
7.4.300.0030.00316.55
7.4.290.0030.00716.52
7.4.280.0030.00316.61
7.4.270.0070.00016.55
7.4.260.0000.00716.48
7.4.250.0000.00716.47
7.4.240.0040.00316.49
7.4.230.0040.00316.61
7.4.220.0040.01416.63
7.4.210.0060.00916.55
7.4.200.0070.00016.71
7.4.190.0040.00416.77
7.4.160.0100.00616.38
7.4.150.0140.00417.40
7.4.140.0120.00917.86
7.4.130.0100.00716.50
7.4.120.0080.00916.52
7.4.110.0090.00816.46
7.4.100.0040.01316.51
7.4.90.0110.00716.32
7.4.80.0170.00019.39
7.4.70.0040.00216.45
7.4.60.0090.00916.49
7.4.50.0040.00416.16
7.4.40.0090.00622.77
7.4.30.0040.01416.34
7.4.00.0040.01215.19
7.3.330.0060.00013.32
7.3.320.0060.00013.25
7.3.310.0040.00416.36
7.3.300.0000.00716.14
7.3.290.0030.01316.32
7.3.280.0060.00916.25
7.3.270.0040.01217.40
7.3.260.0070.01016.55
7.3.250.0070.01016.44
7.3.240.0150.01216.59
7.3.230.0070.01016.39
7.3.210.0040.01316.42
7.3.200.0140.00919.39
7.3.190.0190.00316.25
7.3.180.0100.01316.45
7.3.170.0100.00716.31
7.3.160.0070.01116.45
7.3.120.0030.01315.03
7.3.110.0070.00714.54
7.3.100.0030.01214.63
7.3.90.0100.00014.89
7.3.80.0100.00614.96
7.3.70.0000.01514.79
7.3.60.0100.00314.69
7.3.50.0030.01415.04
7.3.40.0000.01214.89
7.3.30.0040.00414.77
7.3.20.0060.00616.65
7.3.10.0030.01016.71
7.3.00.0070.00716.41
7.2.330.0110.00616.56
7.2.320.0220.00016.38
7.2.310.0120.00516.80
7.2.300.0060.01016.78
7.2.290.0030.01716.47
7.2.240.0040.01115.12
7.2.230.0100.00715.30
7.2.220.0090.00615.26
7.2.210.0060.00915.09
7.2.200.0000.01214.89
7.2.190.0120.00315.18
7.2.180.0070.00715.20
7.2.170.0040.01114.97
7.2.160.0040.01114.72
7.2.150.0070.00716.94
7.2.140.0090.00017.08
7.2.130.0040.01216.99
7.2.120.0030.00816.99
7.2.110.0080.00617.00
7.2.100.0100.00316.78
7.2.90.0030.01216.75
7.2.80.0060.00916.86
7.2.70.0040.01216.98
7.2.60.0030.01016.86
7.2.50.0040.01217.00
7.2.40.0110.00317.04
7.2.30.0070.00316.98
7.2.20.0040.01117.04
7.2.10.0030.01117.00
7.2.00.0060.00618.05
7.1.330.0070.00715.63
7.1.320.0090.00615.79
7.1.310.0030.00615.83
7.1.300.0040.00715.75
7.1.290.0000.01515.91
7.1.280.0070.00715.83
7.1.270.0030.01315.84
7.1.260.0070.00715.61
7.1.250.0070.00715.77
7.1.100.0030.01318.40
7.1.70.0000.00717.07
7.1.60.0000.01219.82
7.1.50.0070.01316.93
7.1.00.0030.06322.44
7.0.200.0030.00516.52
7.0.140.0030.07322.04
7.0.60.0100.08019.88
7.0.50.0100.08017.88
7.0.40.0100.03720.40
7.0.30.0270.04720.23
7.0.20.0270.05020.19
7.0.10.0070.04020.06
7.0.00.0130.07020.11
5.6.210.0030.04020.65
5.6.200.0130.05718.29
5.6.190.0030.04020.60
5.6.180.0400.06720.47
5.6.170.0300.04320.55
5.6.160.0070.04320.46
5.6.150.0100.07718.12
5.6.140.0070.03718.14
5.6.130.0100.07718.18
5.6.120.0000.04721.00
5.6.110.0070.04020.98
5.6.100.0030.08721.04
5.6.90.0070.08321.11
5.6.80.0100.07020.53
5.5.350.0070.02720.39
5.5.340.0070.06317.96
5.5.330.0100.03720.19
5.5.320.0030.08320.24
5.5.310.0330.07020.26
5.5.300.0070.04018.01
5.5.290.0130.03317.93
5.5.280.0000.04320.73
5.5.270.0000.05720.77
5.5.260.0130.06020.77
5.5.250.0100.06020.69
5.5.240.0230.07320.28
5.4.450.0770.02719.52
5.4.440.0870.04719.32
5.4.430.0500.05019.38
5.4.420.0070.05719.54
5.4.410.0130.05019.42
5.4.400.0070.06019.09
5.4.390.0100.05719.09
5.4.380.0230.04319.16
5.4.370.0100.05319.11
5.4.360.0030.06019.24
5.4.350.0070.03712.02
5.4.340.0100.03712.02
5.4.320.0070.03612.50
5.4.310.0070.03812.50
5.4.300.0100.03612.50
5.4.290.0090.04412.50
5.4.280.0060.03512.40
5.4.270.0090.03612.39
5.4.260.0070.03912.40
5.4.250.0030.05718.73
5.4.240.0030.08318.95
5.4.230.0170.07018.74
5.4.220.0100.07718.90
5.4.210.0270.06318.74
5.4.200.0130.07718.92
5.4.190.0170.07018.87
5.4.180.0100.07718.59
5.4.170.0130.05018.94
5.4.160.0130.04318.94
5.4.150.0230.06718.57
5.4.140.0030.07716.44
5.4.130.0170.04016.43
5.4.120.0100.04716.42
5.4.110.0030.05316.47
5.4.100.0100.04716.44
5.4.90.0000.05316.35
5.4.80.0130.04316.34
5.4.70.0030.05316.52
5.4.60.0100.04316.33
5.4.50.0000.05316.51
5.4.40.0000.05716.29
5.4.30.0170.04016.39
5.4.20.0130.05716.50
5.4.10.0170.04316.41
5.4.00.0000.05715.87
5.3.290.0060.03712.80
5.3.280.0200.05714.68
5.3.270.0170.05014.78
5.3.260.0030.05714.59
5.3.250.0070.05014.66
5.3.240.0030.05314.67
5.3.230.0070.05014.73
5.3.220.0100.05714.72
5.3.210.0000.05714.74
5.3.200.0100.04714.57
5.3.190.0100.05314.70
5.3.180.0070.05314.55
5.3.170.0130.04714.53
5.3.160.0130.04314.65
5.3.150.0000.08314.62
5.3.140.0070.05014.55
5.3.130.0000.06014.38
5.3.120.0100.04714.68
5.3.110.0000.06014.45
5.3.100.0100.04714.05
5.3.90.0030.05314.04
5.3.80.0130.04314.09
5.3.70.0030.05314.19
5.3.60.0030.05714.09
5.3.50.0030.05713.92
5.3.40.0130.04314.03
5.3.30.0030.05713.91
5.3.20.0030.07013.59
5.3.10.0170.04013.83
5.3.00.0170.04313.86
5.2.170.0070.04311.13
5.2.160.0030.04011.22
5.2.150.0130.03311.23
5.2.140.0030.04311.31
5.2.130.0000.05711.09
5.2.120.0000.04311.16
5.2.110.0170.04011.32
5.2.100.0130.04711.00
5.2.90.0130.03011.09
5.2.80.0030.04011.08
5.2.70.0130.03311.31
5.2.60.0030.04011.14
5.2.50.0100.04710.98
5.2.40.0030.04010.90
5.2.30.0030.05711.05
5.2.20.0200.02310.79
5.2.10.0030.04010.92
5.2.00.0100.03710.69
5.1.60.0030.03310.09
5.1.50.0070.03010.00
5.1.40.0200.0339.97
5.1.30.0100.04310.50
5.1.20.0030.03710.52
5.1.10.0000.05310.15
5.1.00.0100.03010.06
5.0.50.0030.0278.55
5.0.40.0070.0338.45
5.0.30.0030.0438.38
5.0.20.0070.0238.20
5.0.10.0030.0278.25
5.0.00.0070.0378.13
4.4.90.0070.0175.84
4.4.80.0000.0235.81
4.4.70.0000.0235.89
4.4.60.0000.0235.86
4.4.50.0000.0235.86
4.4.40.0030.0305.81
4.4.30.0030.0205.81
4.4.20.0100.0175.87
4.4.10.0000.0235.89
4.4.00.0100.0235.88
4.3.110.0030.0205.77
4.3.100.0030.0205.79
4.3.90.0100.0135.82
4.3.80.0000.0335.82
4.3.70.0030.0205.88
4.3.60.0100.0135.76
4.3.50.0100.0205.78
4.3.40.0070.0305.78
4.3.30.0000.0305.78
4.3.20.0000.0235.78
4.3.10.0000.0305.78
4.3.00.0100.01314.52

preferences:
68.62 ms | 401 KiB | 5 Q