3v4l.org

run code in 300+ PHP versions simultaneously
<?php $argv[1]=$i='4N4P9N7P1N1P2N2P'; preg_match_all('/(\d+)(\w)/',$argv[1],$m,2); //$o='';foreach($m as $p)$o.=str_repeat($p[2]=='N'?'=':'-',$p[1]); $o='';foreach($m as list(,$n,$c))$o.=str_pad('',$n,$c=='N'?'=':'-'); $a=preg_replace('/./','_',$o=str_replace('--','- ',$o)); echo("$a\n\n\n$o\n\n$a\n");

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.0030.01418.41
8.3.50.0100.00318.46
8.3.40.0100.01019.05
8.3.30.0070.01019.21
8.3.20.0070.00020.21
8.3.10.0040.00421.96
8.3.00.0080.00019.50
8.2.180.0070.00718.54
8.2.170.0160.00322.96
8.2.160.0030.01020.39
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0090.00019.49
8.2.110.0060.00319.32
8.2.100.0060.00617.88
8.2.90.0020.00519.30
8.2.80.0000.00817.97
8.2.70.0030.00517.88
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0090.00020.19
8.2.30.0040.00418.15
8.2.20.0030.00617.89
8.2.10.0040.00418.15
8.2.00.0040.00417.80
8.1.280.0110.00725.92
8.1.270.0060.00320.68
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00321.41
8.1.230.0060.00617.66
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0040.00417.38
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0100.00018.61
8.1.160.0090.00022.00
8.1.150.0040.00418.86
8.1.140.0030.00517.56
8.1.130.0070.00017.76
8.1.120.0050.00217.61
8.1.110.0060.00317.64
8.1.100.0040.00417.49
8.1.90.0040.00417.61
8.1.80.0000.00717.68
8.1.70.0040.00417.60
8.1.60.0000.00817.73
8.1.50.0090.00017.68
8.1.40.0000.00817.70
8.1.30.0080.00017.79
8.1.20.0040.00417.71
8.1.10.0030.00617.56
8.1.00.0000.00717.59
8.0.300.0080.00018.77
8.0.290.0070.00016.88
8.0.280.0030.00518.46
8.0.270.0070.00017.27
8.0.260.0030.00317.27
8.0.250.0030.00617.07
8.0.240.0030.00317.14
8.0.230.0000.00717.10
8.0.220.0020.00517.09
8.0.210.0030.00317.08
8.0.200.0080.00017.01
8.0.190.0040.00416.99
8.0.180.0000.00717.05
8.0.170.0000.00817.04
8.0.160.0050.00317.07
8.0.150.0040.00417.02
8.0.140.0040.00417.00
8.0.130.0030.00313.47
8.0.120.0080.00016.95
8.0.110.0030.00516.88
8.0.100.0040.00417.10
8.0.90.0000.00716.82
8.0.80.0090.01317.01
8.0.70.0000.00717.05
8.0.60.0040.00416.82
8.0.50.0050.00316.87
8.0.30.0080.01417.22
8.0.20.0100.00917.46
8.0.10.0000.00717.02
8.0.00.0040.01416.97
7.4.330.0020.00215.07
7.4.320.0040.00416.72
7.4.300.0060.00016.76
7.4.290.0030.00316.86
7.4.280.0040.00416.67
7.4.270.0000.00716.86
7.4.260.0000.00716.80
7.4.250.0040.00416.70
7.4.240.0070.00016.64
7.4.230.0000.00716.71
7.4.220.0100.01016.61
7.4.210.0100.01016.73
7.4.200.0050.00216.69
7.4.160.0060.00916.68
7.4.150.0090.00917.40
7.4.140.0120.00717.86
7.4.130.0070.01116.50
7.4.120.0070.01216.68
7.4.110.0140.01016.76
7.4.100.0000.01716.64
7.4.90.0070.01016.75
7.4.80.0120.00919.39
7.4.70.0080.01216.91
7.4.60.0030.01316.46
7.4.50.0000.00716.47
7.4.40.0090.00916.70
7.4.30.0120.00616.65
7.4.00.0020.01215.35
7.3.330.0030.00313.32
7.3.320.0080.00413.30
7.3.310.0020.00516.45
7.3.300.0030.00316.40
7.3.290.0100.00416.51
7.3.280.0080.01016.40
7.3.270.0030.01517.40
7.3.260.0090.00916.80
7.3.250.0080.01316.75
7.3.240.0130.01016.51
7.3.230.0150.00616.41
7.3.210.0130.00916.65
7.3.200.0060.01619.39
7.3.190.0070.01016.49
7.3.180.0100.01116.59
7.3.170.0080.00916.53
7.3.160.0030.01616.84
7.3.120.0070.01115.02
7.3.110.0060.00615.12
7.3.100.0000.01315.28
7.3.90.0070.00414.79
7.3.80.0070.01014.95
7.3.70.0070.01115.09
7.3.60.0090.00614.98
7.3.50.0060.00615.03
7.3.40.0070.00714.80
7.3.30.0070.00715.07
7.3.20.0030.00716.79
7.3.10.0090.00516.95
7.3.00.0070.00817.00
7.2.330.0090.00916.84
7.2.320.0100.00616.94
7.2.310.0060.01216.88
7.2.300.0100.00717.08
7.2.290.0070.01616.79
7.2.250.0070.01015.39
7.2.240.0030.01315.46
7.2.230.0030.01315.09
7.2.220.0070.00415.20
7.2.210.0060.00915.50
7.2.200.0070.01415.23
7.2.190.0070.00714.97
7.2.180.0040.00815.30
7.2.170.0000.01415.39
7.2.130.0030.01017.19
7.2.120.0060.00917.18
7.2.110.0060.00916.89
7.2.100.0040.00816.96
7.2.90.0070.00717.07
7.2.80.0100.00317.19
7.2.70.0000.00917.28
7.2.60.0000.01517.26
7.2.50.0000.01316.92
7.2.40.0030.01017.10
7.2.30.0090.00017.16
7.2.20.0070.01017.22
7.2.10.0060.00617.20
7.2.00.0060.00818.25
7.1.330.0040.01116.02
7.1.320.0030.01315.90
7.1.310.0060.00615.89
7.1.300.0060.00315.90
7.1.290.0070.00716.13
7.1.280.0000.01515.96
7.1.270.0040.01115.75
7.1.260.0070.00315.91
7.1.250.0040.01216.16
7.1.100.0060.00618.52
7.1.70.0000.00817.09
7.1.60.0030.01017.21
7.1.50.0100.01017.19
7.1.00.0030.07722.45
7.0.200.0060.00917.07
7.0.140.0030.04022.00
7.0.60.0000.09319.82
7.0.50.0130.07717.82
7.0.40.0000.05720.18
7.0.30.0230.08320.03
7.0.20.0270.04320.14
7.0.10.0270.08320.18
7.0.00.0170.07320.18
5.6.280.0070.07021.15
5.6.210.0100.06020.52
5.6.200.0130.09318.09
5.6.190.0100.04720.43
5.6.180.0300.07020.74
5.6.170.0330.07320.54
5.6.160.0000.06320.37
5.6.150.0130.06718.24
5.6.140.0070.08018.07
5.6.130.0130.04318.15
5.6.120.0030.05720.98
5.6.110.0030.09320.96
5.6.100.0070.05321.04
5.6.90.0100.08721.13
5.6.80.0070.05320.35
5.6.70.0200.02320.50
5.5.350.0370.07720.38
5.5.340.0030.05317.98
5.5.330.0030.04320.57
5.5.320.0030.08020.40
5.5.310.0130.05320.16
5.5.300.0130.04718.02
5.5.290.0130.08317.97
5.5.280.0100.03720.87
5.5.270.0030.05320.76
5.5.260.0200.06320.95
5.5.250.0070.03720.77
5.5.240.0170.07720.27
5.4.450.0670.06019.41
5.4.440.0900.07319.47
5.4.430.1000.07319.56
5.4.420.0500.05719.44
5.4.410.0170.05718.95
5.4.400.0270.06318.64
5.4.390.0170.05718.80
5.4.380.0230.05018.52
5.4.370.0270.05018.72
5.4.360.1170.06018.76
5.4.350.0200.05718.47
5.4.340.0930.05318.57
5.4.320.0230.05318.80
5.4.310.0330.06718.84
5.4.300.0730.07318.75
5.4.290.0230.08018.75
5.4.280.0370.07018.55
5.4.270.0130.06318.52
5.4.260.0300.04718.55
5.4.250.0200.06018.77
5.4.240.0230.05718.61
5.4.230.0300.05018.77
5.4.220.1270.06018.49
5.4.210.1030.05318.62
5.4.200.0300.05016.67
5.4.190.0470.06018.54
5.4.180.0370.07318.45
5.4.170.0400.07318.72
5.4.160.0400.06018.70
5.4.150.0300.05018.73
5.4.140.0370.04316.30
5.4.130.0230.05016.29
5.4.120.0330.04316.30
5.4.110.0300.04016.29
5.4.100.0230.05316.32
5.4.90.0330.04716.30
5.4.80.0300.05016.17
5.4.70.0270.05016.23
5.4.60.0230.05316.13
5.4.50.0230.05316.22
5.4.40.0270.05316.25
5.4.30.0230.05016.16
5.4.20.0200.05716.13
5.4.10.0470.05016.23
5.4.00.0230.05315.71
5.3.290.0270.06014.64
5.3.280.0330.04714.56
5.3.270.0330.05014.52
5.3.260.0270.06314.54
5.3.250.0170.05314.61
5.3.240.0100.05314.58
5.3.230.1100.06314.65
5.3.220.1170.06014.64
5.3.210.2470.05314.60
5.3.200.0230.05714.57
5.3.190.0230.05714.48
5.3.180.0330.04714.57
5.3.170.0330.05014.49
5.3.160.0230.05014.56
5.3.150.0230.05014.66
5.3.140.0330.04714.55
5.3.130.0230.06314.61
5.3.120.0270.06314.48
5.3.110.0330.05014.64
5.3.100.0400.04014.04
5.3.90.0370.04314.12
5.3.80.0270.04713.94
5.3.70.0300.05713.94
5.3.60.0230.06714.00
5.3.50.0300.05713.89
5.3.40.0170.05714.04
5.3.30.0170.07313.82
5.3.20.0170.05713.68
5.3.10.0270.05013.64
5.3.00.0300.05313.76
5.2.170.0300.04011.10
5.2.160.0270.03711.28
5.2.150.0200.05311.20
5.2.140.0270.04311.20
5.2.130.0300.05311.07
5.2.120.0300.03711.07
5.2.110.0230.04711.05
5.2.100.0270.04011.06
5.2.90.0230.04011.16
5.2.80.0370.05011.05
5.2.70.0130.04711.10
5.2.60.0430.06311.11
5.2.50.1400.04711.16
5.2.40.0200.03711.04
5.2.30.0200.04311.02
5.2.20.0200.03310.93
5.2.10.0170.03710.90
5.2.00.0200.04010.82
5.1.60.0130.03710.02
5.1.50.0200.03010.02
5.1.40.0270.0279.95
5.1.30.0170.03710.29
5.1.20.0170.05310.46
5.1.10.0100.04310.14
5.1.00.0170.04010.05
5.0.50.0200.0238.61
5.0.40.0070.0308.43
5.0.30.0130.0478.29
5.0.20.0170.0308.21
5.0.10.0130.0338.20
5.0.00.0030.0608.24
4.4.90.0070.0335.91
4.4.80.0170.0235.94
4.4.70.0030.0335.88
4.4.60.0130.0235.89
4.4.50.0030.0275.87
4.4.40.0070.0375.92
4.4.30.0100.0235.91
4.4.20.0130.0275.92
4.4.10.0100.0305.98
4.4.00.0130.0405.94
4.3.110.0100.0205.84
4.3.100.0070.0235.84
4.3.90.0130.0175.84
4.3.80.0170.0335.78
4.3.70.0100.0275.77
4.3.60.0070.0275.82
4.3.50.0100.0235.86
4.3.40.0130.0405.79
4.3.30.0100.0204.59
4.3.20.0100.0174.54
4.3.10.0100.0174.50
4.3.00.0130.0236.95

preferences:
53.46 ms | 400 KiB | 5 Q