3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; function strlen($s){ return 50; } namespace Bar; use \Foo\strlen as strle; echo Foo\strlen('b');

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.0120.00316.75
8.3.50.0090.01122.08
8.3.40.0060.01518.61
8.3.30.0110.00418.80
8.3.20.0000.00720.07
8.3.10.0040.00421.78
8.3.00.0080.00019.38
8.2.180.0070.01118.18
8.2.170.0070.01022.96
8.2.160.0110.00320.37
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00019.73
8.2.120.0000.00826.35
8.2.110.0060.00322.20
8.2.100.0110.00017.50
8.2.90.0050.00319.03
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0000.00817.91
8.2.50.0000.00818.07
8.2.40.0060.00318.03
8.2.30.0050.00217.88
8.2.20.0070.00017.67
8.2.10.0030.00518.09
8.2.00.0030.00617.73
8.1.280.0120.00925.92
8.1.270.0030.00618.76
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0090.00023.79
8.1.230.0070.00419.07
8.1.220.0060.00317.74
8.1.210.0090.00018.77
8.1.200.0000.00917.23
8.1.190.0030.00617.23
8.1.180.0050.00518.10
8.1.170.0060.00318.30
8.1.160.0080.00021.86
8.1.150.0040.00418.82
8.1.140.0050.00317.33
8.1.130.0050.00317.64
8.1.120.0000.00717.23
8.1.110.0030.00517.20
8.1.100.0040.00417.32
8.1.90.0000.00717.32
8.1.80.0000.00817.25
8.1.70.0030.00317.36
8.1.60.0080.00017.44
8.1.50.0060.00317.52
8.1.40.0040.00417.39
8.1.30.0030.00617.52
8.1.20.0040.00417.56
8.1.10.0080.00017.38
8.1.00.0020.00517.40
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0030.00318.29
8.0.270.0000.00717.11
8.0.260.0070.00017.13
8.0.250.0030.00316.86
8.0.240.0030.00316.91
8.0.230.0000.00716.92
8.0.220.0000.00716.83
8.0.210.0030.00316.75
8.0.200.0040.00416.98
8.0.190.0040.00416.81
8.0.180.0040.00416.91
8.0.170.0040.00416.88
8.0.160.0040.00416.91
8.0.150.0000.00716.90
8.0.140.0070.00016.78
8.0.130.0000.00713.24
8.0.120.0070.00016.84
8.0.110.0000.00716.84
8.0.100.0000.00716.77
8.0.90.0060.00316.84
8.0.80.0100.01016.93
8.0.70.0000.00716.75
8.0.60.0040.00417.00
8.0.50.0040.00416.76
8.0.30.0120.01016.99
8.0.20.0270.03217.40
8.0.10.0000.00716.84
8.0.00.0110.00616.66
7.4.330.0050.00015.03
7.4.320.0070.00016.48
7.4.300.0060.00016.54
7.4.290.0000.00716.54
7.4.280.0070.00016.37
7.4.270.0000.00616.49
7.4.260.0000.00716.34
7.4.250.0070.00016.50
7.4.240.0060.00316.43
7.4.230.0000.00816.18
7.4.220.0160.00416.40
7.4.210.0060.00916.46
7.4.200.0000.00716.63
7.4.160.0140.00716.52
7.4.150.0120.00617.40
7.4.140.0140.00917.86
7.4.130.0110.00716.46
7.4.120.0150.00516.50
7.4.110.0130.00616.59
7.4.100.0100.01316.63
7.4.90.0120.00816.49
7.4.80.0060.01219.39
7.4.70.0100.00716.30
7.4.60.0120.00316.47
7.4.50.0000.00716.40
7.4.40.0040.01316.39
7.4.30.0130.01016.36
7.4.00.0040.00814.63
7.3.330.0000.00513.21
7.3.320.0150.00013.32
7.3.310.0030.00616.36
7.3.300.0030.00316.14
7.3.290.0100.00616.27
7.3.280.0100.00716.28
7.3.270.0080.00817.40
7.3.260.0160.00016.55
7.3.250.0080.01016.39
7.3.240.0040.01316.30
7.3.230.0070.01016.39
7.3.210.0040.01216.24
7.3.200.0100.00719.39
7.3.190.0100.00616.38
7.3.180.0030.01316.46
7.3.170.0030.01916.29
7.3.160.0070.01016.35
7.3.10.0040.00716.57
7.3.00.0030.00916.66
7.2.330.0100.01316.32
7.2.320.0100.00716.45
7.2.310.0130.01016.65
7.2.300.0040.01316.43
7.2.290.0120.00616.60
7.2.130.0080.00416.83
7.2.120.0070.00716.79
7.2.110.0030.00616.58
7.2.100.0080.00416.48
7.2.90.0070.00316.91
7.2.80.0040.00716.76
7.2.70.0040.00716.78
7.2.60.0090.00516.75
7.2.50.0110.00016.71
7.2.40.0040.01116.58
7.2.30.0000.00916.75
7.2.20.0060.00616.74
7.2.10.0000.01016.95
7.2.00.0080.00317.88
7.1.250.0100.00615.68
7.1.200.0110.00415.15
7.1.100.0000.01118.13
7.1.70.0040.00417.03
7.1.60.0070.00719.50
7.1.50.0130.01016.81
7.1.00.0100.07022.28
7.0.200.0090.00014.92
7.0.140.0130.06722.08
7.0.60.0030.04319.95
7.0.50.0100.08317.72
7.0.40.0030.08020.08
7.0.30.0030.07320.30
7.0.20.0370.07720.06
7.0.10.0030.05720.09
7.0.00.0130.05720.22
5.6.280.0070.09721.04
5.6.210.0030.05020.53
5.6.200.0100.07718.16
5.6.190.0070.07320.44
5.6.180.0330.04720.52
5.6.170.0230.06320.71
5.6.160.0130.03720.54
5.6.150.0030.08318.15
5.6.140.0100.03318.16
5.6.130.0100.06718.13
5.6.120.0030.06020.97
5.6.110.0130.07721.11
5.6.100.0130.08021.01
5.6.90.0170.04721.00
5.6.80.0030.08320.44
5.5.350.0200.04020.42
5.5.340.0100.07718.04
5.5.330.0100.07720.43
5.5.320.0270.08020.27
5.5.310.0270.07720.51
5.5.300.0030.08018.04
5.5.290.0100.07317.98
5.5.280.0100.05720.66
5.5.270.0070.05320.85
5.5.260.0070.08720.72
5.5.250.0100.07720.66
5.5.240.0130.05720.07
5.4.450.0700.05719.56
5.4.440.1000.04719.39
5.4.430.0770.06719.29
5.4.420.0100.05319.13
5.4.410.1000.05319.47
5.4.400.0230.07018.75
5.4.390.0270.04718.58
5.4.380.0200.05318.74
5.4.370.0270.04318.54
5.4.360.0170.05318.75
5.4.350.0300.04718.75
5.4.340.0070.06318.72
5.4.320.0170.05318.46
5.4.310.0200.05018.76
5.4.300.0230.04718.56
5.4.290.0230.04318.63
5.4.280.0230.04318.83
5.4.270.0200.05018.71
5.4.260.0130.05318.72
5.4.250.0230.04718.55
5.4.240.0130.05718.52
5.4.230.0170.05018.71
5.4.220.0100.06018.48
5.4.210.0170.05318.72
5.4.200.0100.05716.58
5.4.190.0100.05718.71
5.4.180.0230.05018.71
5.4.170.0170.05718.45
5.4.160.0230.04318.61
5.4.150.0300.04318.80
5.4.140.0170.05016.21
5.4.130.0300.04716.33
5.4.120.0170.05016.32
5.4.110.0200.04716.16
5.4.100.0170.05016.28
5.4.90.0170.06016.32
5.4.80.0230.04716.27
5.4.70.0200.05316.16
5.4.60.0230.04316.25
5.4.50.0170.05016.28
5.4.40.0200.04716.16
5.4.30.0130.05016.13
5.4.20.0270.04016.39
5.4.10.0170.05016.29
5.4.00.0170.05015.70
5.3.290.0230.04714.67
5.3.280.0170.05314.64
5.3.270.0230.05314.82
5.3.260.0200.05714.81
5.3.250.0200.05014.60
5.3.240.0130.05714.80
5.3.230.0230.06714.58
5.3.220.0100.06014.64
5.3.210.0170.06314.62
5.3.200.0330.03714.68
5.3.190.0170.05314.59
5.3.180.0200.05014.68
5.3.170.0270.04314.60
5.3.160.0170.05014.70
5.3.150.0200.07014.74
5.3.140.0270.04314.59
5.3.130.0170.05314.57
5.3.120.0170.06014.77
5.3.110.0100.06014.77
5.3.100.0200.05014.14
5.3.90.0130.06714.16
5.3.80.0130.05314.01
5.3.70.0300.03714.22
5.3.60.0170.05714.07
5.3.50.0200.05013.96
5.3.40.0170.05014.16
5.3.30.0230.04314.01
5.3.20.0200.06713.68
5.3.10.0200.06313.70
5.3.00.0200.04313.79
5.2.170.0100.04711.28
5.2.160.0200.04011.11
5.2.150.0130.04311.06
5.2.140.0130.04711.10
5.2.130.0100.04311.06
5.2.120.0070.04711.25
5.2.110.0130.04011.16
5.2.100.0100.04311.14
5.2.90.0130.04011.05
5.2.80.0030.05311.07
5.2.70.0070.05011.09
5.2.60.0230.04710.98
5.2.50.0170.04311.07
5.2.40.0130.04010.94
5.2.30.0130.04010.92
5.2.20.0170.04010.87
5.2.10.0130.05010.85
5.2.00.0170.05010.75
5.1.60.0130.03310.09
5.1.50.0100.03710.05
5.1.40.0170.0309.96
5.1.30.0100.03710.45
5.1.20.0170.03310.49
5.1.10.0130.03710.19
5.1.00.0100.05310.10
5.0.50.0170.0308.53
5.0.40.0170.0308.42
5.0.30.0130.0508.25
5.0.20.0100.0238.32
5.0.10.0100.0278.25
5.0.00.0130.0508.24
4.4.90.0070.0235.91
4.4.80.0070.0205.92
4.4.70.0100.0205.86
4.4.60.0070.0205.94
4.4.50.0070.0235.91
4.4.40.0070.0335.82
4.4.30.0070.0235.91
4.4.20.0030.0275.96
4.4.10.0130.0235.88
4.4.00.0100.0435.95
4.3.110.0100.0205.83
4.3.100.0170.0175.79
4.3.90.0070.0235.88
4.3.80.0000.0405.79
4.3.70.0070.0205.81
4.3.60.0130.0175.81
4.3.50.0100.0205.82
4.3.40.0130.0305.82
4.3.30.0000.0274.56
4.3.20.0000.0274.57
4.3.10.0070.0174.51
4.3.00.0170.0177.02

preferences:
44.01 ms | 401 KiB | 5 Q