3v4l.org

run code in 300+ PHP versions simultaneously
<?php function repl0($m) { return '&#'.$m[0]; } $s = 'This is a good 23200; sample ship'; echo "input1= ".htmlentities($s)."<br>"; $out1=preg_replace_callback('/(?<!#)(\d{4,5};)/','repl0',$s); echo 'output1 = '.htmlentities($out1).'<br>';

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.10.0130.00716.74
8.5.00.0110.01020.32
8.4.150.0020.00014.05
8.4.140.0160.00817.90
8.4.130.0130.00818.95
8.4.120.0120.00822.36
8.4.110.0180.00518.95
8.4.100.0080.01018.17
8.4.90.0040.00520.54
8.4.80.0110.00918.65
8.4.70.0080.01218.88
8.4.60.0100.01020.39
8.4.50.0120.00820.60
8.4.40.0110.00019.65
8.4.30.0130.00720.47
8.4.20.0140.00719.05
8.4.10.0150.00419.44
8.3.280.0120.00920.41
8.3.270.0200.00816.70
8.3.260.0030.00516.68
8.3.250.0090.00616.54
8.3.240.0110.00716.86
8.3.230.0130.00516.75
8.3.220.0040.00318.98
8.3.210.0100.00516.57
8.3.200.0060.00316.60
8.3.190.0130.00616.85
8.3.180.0080.00618.72
8.3.170.0040.01417.02
8.3.160.0080.00016.74
8.3.150.0100.01016.66
8.3.140.0040.00416.53
8.3.130.0060.01216.54
8.3.120.0100.01018.85
8.3.110.0080.00320.94
8.3.100.0000.00824.06
8.3.90.0080.00026.77
8.3.80.0040.00416.88
8.3.70.0060.01518.30
8.3.60.0040.01518.20
8.3.50.0070.00718.25
8.3.40.0120.00319.05
8.3.30.0110.00318.77
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0070.00218.52
8.2.280.0110.00818.73
8.2.270.0090.00916.70
8.2.260.0080.00017.17
8.2.250.0050.00318.59
8.2.240.0000.00917.15
8.2.230.0100.00022.58
8.2.220.0040.00437.54
8.2.210.0110.00426.77
8.2.200.0030.00616.75
8.2.190.0120.00316.63
8.2.180.0060.00925.92
8.2.170.0130.00319.04
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0100.00026.16
8.2.120.0050.00319.74
8.2.110.0000.00920.51
8.2.100.0090.00317.97
8.2.90.0000.00917.75
8.2.80.0040.00418.98
8.2.70.0040.00417.88
8.2.60.0000.00817.75
8.2.50.0040.00418.05
8.2.40.0030.00519.68
8.2.30.0030.00618.04
8.2.20.0050.00318.06
8.2.10.0040.00421.18
8.2.00.0080.00019.21
8.1.330.0070.00216.47
8.1.320.0100.00818.67
8.1.310.0090.00918.58
8.1.300.0040.00418.34
8.1.290.0070.00318.88
8.1.280.0170.00725.92
8.1.270.0090.00023.99
8.1.260.0030.00626.35
8.1.250.0070.00328.09
8.1.240.0030.00622.18
8.1.230.0040.00720.88
8.1.220.0030.00617.79
8.1.210.0000.00818.77
8.1.200.0000.00817.60
8.1.190.0040.00417.38
8.1.180.0080.00019.26
8.1.170.0050.00317.70
8.1.160.0060.00320.74
8.1.150.0040.00418.92
8.1.140.0000.00718.95
8.1.130.0000.00720.07
8.1.120.0040.00417.68
8.1.110.0080.00017.62
8.1.100.0050.00317.57
8.1.90.0000.00717.52
8.1.80.0050.00317.58
8.1.70.0000.00717.66
8.1.60.0080.00017.79
8.1.50.0040.00417.66
8.1.40.0040.00417.60
8.1.30.0040.00417.70
8.1.20.0080.00017.82
8.1.10.0020.00517.74
8.1.00.0040.00417.72
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.47
8.0.270.0030.00318.06
8.0.260.0030.00318.48
8.0.250.0040.00417.16
8.0.240.0030.00317.02
8.0.230.0030.00317.12
8.0.220.0030.00317.06
8.0.210.0070.00017.03
8.0.200.0070.00017.14
8.0.190.0080.00017.09
8.0.180.0080.00017.08
8.0.170.0030.00617.09
8.0.160.0070.00017.09
8.0.150.0000.01016.95
8.0.140.0060.00316.99
8.0.130.0050.00013.44
8.0.120.0000.00717.02
8.0.110.0090.00016.91
8.0.100.0050.00316.90
8.0.90.0040.00417.02
8.0.80.0050.01117.01
8.0.70.0000.00716.95
8.0.60.0000.00817.04
8.0.50.0040.00417.00
8.0.30.0110.00816.98
8.0.20.0100.01316.98
8.0.10.0110.00617.07
8.0.00.0120.00617.16
7.4.330.0050.00015.55
7.4.320.0060.00016.76
7.4.300.0030.00316.75
7.4.290.0070.00016.70
7.4.280.0040.00416.76
7.4.270.0000.00716.66
7.4.260.0030.00313.35
7.4.250.0070.00016.65
7.4.240.0000.00716.71
7.4.230.0000.00716.56
7.4.220.0030.00316.81
7.4.210.0090.00716.74
7.4.200.0020.00516.82
7.4.160.0130.01016.69
7.4.150.0080.00816.79
7.4.140.0120.00916.84
7.4.130.0100.00716.70
7.4.120.0090.01216.56
7.4.110.0060.01116.73
7.4.100.0060.01216.72
7.4.90.0120.00916.66
7.4.80.0070.01016.56
7.4.70.0060.01016.62
7.4.60.0040.01416.68
7.4.50.0040.01216.68
7.4.40.0110.01116.54
7.4.30.0100.00716.70
7.4.20.0080.01116.63
7.4.10.0100.00716.70
7.4.00.0120.00916.74
7.3.330.0020.00516.48
7.3.320.0000.00613.23
7.3.310.0020.00516.33
7.3.300.0070.00016.32
7.3.290.0120.00916.41
7.3.270.0180.00316.38
7.3.260.0030.01316.34
7.3.250.0120.00916.38
7.3.240.0010.02016.38
7.3.230.0080.01216.33
7.3.220.0030.01416.35
7.3.210.0030.01716.40
7.3.200.0030.01216.40
7.3.190.0090.00716.31
7.3.180.0070.01416.40
7.3.170.0130.00616.36
7.3.160.0150.00316.41
7.3.150.0070.01316.39
7.3.140.0130.00816.36
7.3.130.0060.01016.37
7.3.120.0030.01316.32
7.3.110.0070.01016.32
7.3.100.0060.00916.29
7.3.90.0070.00816.72
7.3.80.0070.01316.44
7.3.70.0070.01416.54
7.3.60.0090.01216.55
7.3.50.0070.01416.53
7.3.40.0080.00516.53
7.3.30.0080.00816.46
7.3.20.0110.01116.61
7.3.10.0090.01316.52
7.3.00.0070.01416.52

preferences:
168.88 ms | 403 KiB | 5 Q