3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "list page.php?cpage=1, list page.php?cpage=2, list page.php?cpage=3 thats all"; preg_match_all("/cpage=[0-9]/", $string, $matches); foreach($matches[0] as $value) { echo $value . '/'; $string = str_replace("?cpage=", "/", $matches); } //echo $string; //hasil list page.php1, list page.php2, list page.php3 thats all //yg diinginkan list page.php/1/, list page.php/2/, list page.php/3/ thats all

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.0070.00717.00
8.3.50.0160.00621.97
8.3.40.0070.00718.83
8.3.30.0090.00618.73
8.3.20.0000.00720.16
8.3.10.0080.00023.71
8.3.00.0080.00019.54
8.2.180.0100.01018.42
8.2.170.0140.00722.96
8.2.160.0070.01020.35
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00317.88
8.2.110.0030.00922.26
8.2.100.0040.00718.16
8.2.90.0000.00719.39
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0040.00418.04
8.2.50.0090.00018.07
8.2.40.0030.00620.98
8.2.30.0000.00820.64
8.2.20.0000.00717.77
8.2.10.0000.00718.07
8.2.00.0000.00718.05
8.1.280.0150.00625.92
8.1.270.0150.00323.77
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0090.00020.75
8.1.230.0110.00017.78
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0040.00417.47
8.1.190.0060.00317.35
8.1.180.0030.00518.10
8.1.170.0080.00020.50
8.1.160.0040.00422.04
8.1.150.0070.00018.91
8.1.140.0030.00719.65
8.1.130.0000.00717.69
8.1.120.0040.00417.52
8.1.110.0040.00417.48
8.1.100.0050.00217.52
8.1.90.0050.00317.65
8.1.80.0050.00217.49
8.1.70.0070.00017.60
8.1.60.0030.00617.72
8.1.50.0000.00917.65
8.1.40.0040.00417.57
8.1.30.0030.00617.84
8.1.20.0050.00317.82
8.1.10.0040.00417.76
8.1.00.0050.00317.58
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00718.46
8.0.270.0000.00717.26
8.0.260.0070.00017.28
8.0.250.0000.00717.13
8.0.240.0040.00417.23
8.0.230.0030.00617.20
8.0.220.0070.00016.98
8.0.210.0060.00316.97
8.0.200.0030.00317.13
8.0.190.0050.00317.05
8.0.180.0050.00317.01
8.0.170.0000.00816.97
8.0.160.0000.00717.14
8.0.150.0060.00317.06
8.0.140.0000.00717.08
8.0.130.0030.00313.48
8.0.120.0000.00817.09
8.0.110.0000.00717.16
8.0.100.0050.00317.07
8.0.90.0030.00316.96
8.0.80.0090.00617.09
8.0.70.0040.00417.16
8.0.60.0050.00316.97
8.0.50.0000.00717.12
8.0.30.0090.01017.25
8.0.20.0140.00717.43
8.0.10.0000.00717.29
8.0.00.0060.01317.02
7.4.330.0050.00015.14
7.4.320.0060.00016.67
7.4.300.0000.00616.71
7.4.290.0000.00716.75
7.4.280.0100.00316.77
7.4.270.0040.00416.84
7.4.260.0040.00416.69
7.4.250.0000.00816.69
7.4.240.0030.00316.76
7.4.230.0070.00016.88
7.4.220.0000.00016.79
7.4.210.0090.00916.70
7.4.200.0070.00016.60
7.4.160.0060.00916.55
7.4.150.0120.00617.40
7.4.140.0080.01317.86
7.4.130.0050.01316.68
7.4.120.0120.00516.77
7.4.110.0000.01616.83
7.4.100.0030.01416.77
7.4.90.0170.00016.47
7.4.80.0090.00919.39
7.4.70.0100.00716.86
7.4.60.0070.01016.72
7.4.50.0060.00316.32
7.4.40.0100.00716.71
7.4.30.0100.01016.67
7.4.00.0040.00914.96
7.3.330.0020.00213.37
7.3.320.0060.00013.36
7.3.310.0040.00416.42
7.3.300.0050.00216.53
7.3.290.0080.00616.43
7.3.280.0120.00616.41
7.3.270.0060.01117.40
7.3.260.0130.00316.66
7.3.250.0080.00816.53
7.3.240.0100.00816.46
7.3.230.0030.01616.75
7.3.210.0100.00616.43
7.3.200.0090.00616.75
7.3.190.0160.00016.55
7.3.180.0030.01316.75
7.3.170.0070.01016.75
7.3.160.0080.01116.58
7.3.120.0100.00714.79
7.3.110.0000.01414.97
7.3.100.0090.00614.90
7.3.90.0030.01415.04
7.3.80.0070.00714.68
7.3.70.0130.00315.10
7.3.60.0060.00915.17
7.3.50.0060.00914.90
7.3.40.0090.00614.94
7.3.30.0090.00615.07
7.3.20.0090.00616.86
7.3.10.0080.00817.05
7.3.00.0030.01316.66
7.2.330.0120.01216.89
7.2.320.0050.01416.77
7.2.310.0150.00416.77
7.2.300.0100.00716.88
7.2.290.0030.01416.88
7.2.250.0100.00615.48
7.2.240.0070.01114.91
7.2.230.0070.00715.10
7.2.220.0120.00615.04
7.2.210.0060.00615.24
7.2.200.0070.00315.20
7.2.190.0000.01815.31
7.2.180.0140.00415.26
7.2.170.0110.00314.96
7.2.00.0170.00419.29
7.1.330.0040.01215.84
7.1.320.0060.00616.20
7.1.310.0060.00316.11
7.1.300.0050.00816.14
7.1.290.0000.01415.98
7.1.280.0060.00615.87
7.1.270.0030.01216.02
7.1.260.0070.01015.96
7.1.100.0040.00418.31
7.1.70.0000.00917.39
7.1.60.0040.01419.11
7.1.50.0120.00917.02
7.1.00.0100.06722.29
7.0.200.0090.00314.88
7.0.60.0130.07320.04
7.0.50.0000.08717.83
7.0.40.0100.08320.29
7.0.30.0570.06320.35
7.0.20.0200.07720.14
7.0.10.0370.07320.22
7.0.00.0070.07020.10
5.6.280.0070.03020.89
5.6.210.0170.07320.50
5.6.200.0070.04318.16
5.6.190.0070.04320.57
5.6.180.0230.04320.54
5.6.170.0300.04720.49
5.6.160.0030.04320.55
5.6.150.0070.05318.11
5.6.140.0030.04018.20
5.6.130.0070.09018.25
5.6.120.0170.05020.98
5.6.110.0100.08021.13
5.6.100.0100.06720.99
5.6.90.0000.09321.07
5.6.80.0030.08320.52
5.6.70.0300.07320.39
5.5.350.0300.06020.43
5.5.340.0030.05317.88
5.5.330.0100.08020.20
5.5.320.0200.06020.15
5.5.310.0270.09020.12
5.5.300.0100.07017.92
5.5.290.0030.05317.92
5.5.280.0070.06020.84
5.5.270.0070.05720.76
5.5.260.0100.04020.87
5.5.250.0030.07720.66
5.5.240.0100.08020.37
5.4.450.0670.05019.39
5.4.440.0770.06319.60
5.4.430.0700.05718.98
5.4.420.0570.06319.13
5.4.410.0800.05019.16
5.4.400.0630.08019.25
5.4.390.0670.07019.02
5.4.380.0770.07318.71
5.4.370.0930.04719.26
5.4.360.0670.07019.00
5.4.350.0730.07318.66
5.4.340.0700.06718.69
5.4.320.0770.06318.69
5.4.310.0830.05718.69
5.4.300.0900.07318.99
5.4.290.0900.07019.11
5.4.280.0870.06018.82
5.4.270.0830.06319.15
5.4.260.0770.04719.24
5.4.250.1000.06318.79
5.4.240.0770.06019.01
5.4.230.0730.05319.27
5.4.220.0930.07019.00
5.4.210.0670.06019.03
5.4.200.0770.04018.96
5.4.190.0830.05318.68
5.4.180.0870.05719.10
5.4.170.0600.05719.02
5.4.160.0570.05718.63
5.4.150.0800.06719.09
5.4.140.0830.04016.34
5.4.130.0830.06716.48
5.4.120.0900.07316.46
5.4.110.0870.05716.19
5.4.100.0730.05716.45
5.4.90.0570.05016.45
5.4.80.0570.05716.18
5.4.70.0670.04316.44
5.4.60.0570.05016.43
5.4.50.0630.04716.41
5.4.40.0770.04016.43
5.4.30.1000.05016.22
5.4.20.0700.06016.48
5.4.10.0970.04316.23
5.4.00.0830.05315.73

preferences:
52.83 ms | 401 KiB | 5 Q