3v4l.org

run code in 300+ PHP versions simultaneously
<?php function curid() { $id = 0; return function() use($id) { $id = $id + 1; return $id; }; } echo curid()() . '-' . curid()() . '-' . curid()();

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.30.0120.00520.11
8.5.20.0090.00720.25
8.5.10.0070.00919.51
8.5.00.0150.00619.92
8.4.180.0070.01519.67
8.4.170.0080.01323.67
8.4.160.0100.01223.81
8.4.150.0090.00316.85
8.4.140.0160.00917.48
8.4.130.0130.00717.64
8.4.120.0100.01020.57
8.4.110.0130.00819.53
8.4.100.0100.01117.79
8.4.90.0110.00820.54
8.4.80.0110.00818.83
8.4.70.0120.00718.73
8.4.60.0050.00318.85
8.4.50.0070.01320.25
8.4.40.0130.00719.32
8.4.30.0140.00717.51
8.4.20.0130.00719.43
8.4.10.0060.00317.55
8.3.300.0120.00822.60
8.3.290.0120.01022.31
8.3.280.0100.01020.09
8.3.270.0070.01116.80
8.3.260.0140.00416.60
8.3.250.0160.00218.68
8.3.240.0170.00416.74
8.3.230.0100.00816.45
8.3.220.0100.00719.07
8.3.210.0090.00916.55
8.3.200.0050.00316.63
8.3.190.0060.00617.34
8.3.180.0060.00418.72
8.3.170.0040.01418.72
8.3.160.0000.00917.06
8.3.150.0070.01120.72
8.3.140.0090.00617.13
8.3.130.0080.00018.38
8.3.120.0040.00418.82
8.3.110.0050.00320.94
8.3.100.0060.00318.11
8.3.90.0040.01118.22
8.3.80.0050.00516.38
8.3.70.0070.00716.58
8.3.60.0030.01316.63
8.3.50.0110.00722.94
8.3.40.0060.00918.89
8.3.30.0110.00418.76
8.3.20.0100.00721.86
8.3.10.0030.00623.51
8.3.00.0080.00019.26
8.2.300.0120.00817.89
8.2.290.0070.00316.48
8.2.280.0140.00518.48
8.2.270.0110.00717.46
8.2.260.0110.00720.32
8.2.250.0000.00818.24
8.2.240.0150.00418.63
8.2.230.0120.00322.58
8.2.220.0000.00837.54
8.2.210.0000.01426.77
8.2.200.0030.00616.75
8.2.190.0130.01016.88
8.2.180.0110.01125.92
8.2.170.0140.00718.96
8.2.160.0070.00720.38
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00521.04
8.2.110.0060.00322.11
8.2.100.0000.01217.91
8.2.90.0000.00720.29
8.2.80.0000.00817.97
8.2.70.0040.00417.77
8.2.60.0050.00318.09
8.2.50.0080.00018.10
8.2.40.0000.00822.12
8.2.30.0060.00319.13
8.2.20.0000.00818.05
8.2.10.0020.00518.16
8.2.00.0000.00817.66
8.1.340.0110.01119.89
8.1.330.0100.00816.08
8.1.320.0120.00716.38
8.1.310.0180.00016.91
8.1.300.0060.00317.74
8.1.290.0000.00918.88
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00720.75
8.1.230.0080.00420.91
8.1.220.0080.00017.74
8.1.210.0000.00819.04
8.1.200.0060.00617.22
8.1.190.0060.00317.00
8.1.180.0000.00918.10
8.1.170.0050.00318.69
8.1.160.0000.00718.80
8.1.150.0040.00420.23
8.1.140.0040.00418.94
8.1.130.0030.00319.06
8.1.120.0020.00517.50
8.1.110.0040.00417.44
8.1.100.0030.00517.43
8.1.90.0060.00317.48
8.1.80.0040.00417.45
8.1.70.0030.00617.48
8.1.60.0040.00417.60
8.1.50.0040.00417.53
8.1.40.0060.00317.50
8.1.30.0040.00417.69
8.1.20.0000.00817.55
8.1.10.0040.00417.49
8.1.00.0080.00017.58
8.0.300.0000.00820.07
8.0.290.0070.00016.75
8.0.280.0070.00018.36
8.0.270.0070.00016.69
8.0.260.0060.00317.17
8.0.250.0000.00716.92
8.0.240.0040.00416.85
8.0.230.0090.00016.93
8.0.220.0000.00716.79
8.0.210.0070.00016.88
8.0.200.0030.00616.92
8.0.190.0000.00717.01
8.0.180.0040.00416.93
8.0.170.0040.00716.89
8.0.160.0030.00516.84
8.0.150.0070.00016.71
8.0.140.0040.00416.84
8.0.130.0030.00313.25
8.0.120.0000.00716.75
8.0.110.0070.00016.80
8.0.100.0030.00316.95
8.0.90.0030.00316.95
8.0.80.0130.01016.91
8.0.70.0040.00416.79
8.0.60.0040.00416.95
8.0.50.0000.00716.76
8.0.30.0090.00917.08
8.0.20.0160.00717.40
8.0.10.0040.00416.90
8.0.00.0090.00916.74
7.4.330.0000.00515.55
7.4.320.0000.00716.60
7.4.300.0000.00716.64
7.4.290.0070.00016.45
7.4.280.0030.00516.54
7.4.270.0030.00316.42
7.4.260.0050.00216.59
7.4.250.0040.00416.38
7.4.240.0000.00716.63
7.4.230.0000.00716.57
7.4.220.0060.01516.66
7.4.210.0060.01216.57
7.4.200.0070.00016.40
7.4.160.0060.01016.54
7.4.150.0100.00717.40
7.4.140.0100.00817.86
7.4.130.0070.01016.56
7.4.120.0090.01016.62
7.4.110.0090.00916.50
7.4.100.0110.00616.45
7.4.90.0110.01216.52
7.4.80.0050.01019.39
7.4.70.0180.00016.54
7.4.60.0060.01316.33
7.4.50.0090.00316.58
7.4.40.0120.00616.48
7.4.30.0070.01116.54
7.4.00.0030.01314.98
7.3.330.0000.00513.16
7.3.320.0030.00313.13
7.3.310.0000.00716.31
7.3.300.0000.00716.30
7.3.290.0040.00416.25
7.3.280.0110.00716.29
7.3.270.0120.00617.40
7.3.260.0130.00816.57
7.3.250.0110.00916.38
7.3.240.0070.01116.49
7.3.230.0170.00316.47
7.3.210.0100.00616.43
7.3.200.0040.01719.39
7.3.190.0090.01416.36
7.3.180.0150.00016.47
7.3.170.0130.00316.36
7.3.160.0080.00816.58
7.3.120.0070.01014.46
7.3.110.0070.01014.92
7.3.100.0110.00814.86
7.3.90.0040.01214.96
7.3.80.0080.00414.84
7.3.70.0030.01014.95
7.3.60.0070.00714.59
7.3.50.0060.00614.67
7.3.40.0060.00314.87
7.3.30.0100.00014.59
7.3.20.0060.00916.45
7.3.10.0040.01216.64
7.3.00.0080.00716.62
7.2.330.0140.00616.62
7.2.320.0180.00016.30
7.2.310.0110.00616.57
7.2.300.0170.00916.60
7.2.290.0100.01116.41
7.2.250.0070.01315.12
7.2.240.0040.01515.17
7.2.230.0040.01114.75
7.2.220.0070.00715.21
7.2.210.0070.01115.28
7.2.200.0070.00715.12
7.2.190.0120.00315.18
7.2.180.0060.00615.09
7.2.170.0070.01015.04
7.2.160.0030.01014.70
7.2.150.0040.01116.71
7.2.140.0150.00616.79
7.2.130.0030.01216.73
7.2.120.0030.01216.88
7.2.110.0070.00716.62
7.2.100.0060.00816.55
7.2.90.0090.00616.68
7.2.80.0090.00516.86
7.2.70.0100.00516.93
7.2.60.0060.00816.75
7.2.50.0070.00516.89
7.2.40.0100.00516.80
7.2.30.0030.00816.79
7.2.20.0080.00516.99
7.2.10.0040.01016.94
7.2.00.0030.00917.79
7.1.330.0030.01315.93
7.1.320.0070.00715.99
7.1.310.0000.00815.79
7.1.300.0030.01215.75
7.1.290.0060.00615.59
7.1.280.0030.00715.68
7.1.270.0080.00415.51
7.1.260.0110.00615.67
7.1.250.0050.00515.81
7.1.240.0030.00715.50
7.1.230.0070.00415.68
7.1.220.0060.00515.78
7.1.210.0030.00715.74
7.1.200.0050.00715.61
7.1.190.0030.00715.51
7.1.180.0050.00215.54
7.1.170.0100.00315.47
7.1.160.0060.01015.73
7.1.150.0000.01515.46
7.1.140.0070.00715.65
7.1.130.0000.01015.38
7.1.120.0060.00315.61
7.1.110.0000.01215.64
7.1.100.0090.00315.81
7.1.90.0070.00715.35
7.1.80.0040.01115.75
7.1.70.0020.00716.50
7.1.60.0050.00716.26
7.1.50.0060.00916.33
7.1.40.0040.00415.43
7.1.30.0030.01015.61
7.1.20.0060.00615.52
7.1.10.0080.03618.90
7.1.00.0070.03018.91
7.0.330.0000.01215.28
7.0.320.0030.00715.13
7.0.310.0030.00715.11
7.0.300.0040.00815.06
7.0.290.0000.00715.18
7.0.280.0130.00015.20
7.0.270.0100.00315.34
7.0.260.0060.00315.15
7.0.250.0060.00615.43
7.0.240.0000.00815.30
7.0.230.0100.00315.16
7.0.220.0110.00315.12
7.0.210.0090.00315.04
7.0.200.0130.00315.97
7.0.190.0070.00715.38
7.0.180.0040.00815.02
7.0.170.0100.00015.08
7.0.160.0030.00615.12
7.0.150.0100.03718.54
7.0.140.0080.02818.57
7.0.130.0080.03318.62
7.0.120.0070.03218.43
7.0.110.0070.03218.67
7.0.100.0080.03118.64
7.0.90.0050.03318.55
7.0.80.0070.04218.57
7.0.70.0060.03118.54
7.0.60.0050.03018.66
7.0.50.0020.03518.52
7.0.40.0050.03317.41
7.0.30.0050.03217.62
7.0.20.0110.03217.62
7.0.10.0050.03117.34
7.0.00.0070.03217.67
5.6.380.0030.00713.98

preferences:
99.6 ms | 1742 KiB | 5 Q