3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = "gaja nagaja"; $token = "gaja"; $replaced = preg_replace("\\b{$token}\\b", "<span>{$token}</span>"); echo $replaced;

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.0000.01518.45
8.3.50.0080.01022.05
8.3.40.0100.00318.79
8.3.30.0040.01118.54
8.3.20.0040.00420.18
8.3.10.0040.00423.66
8.3.00.0050.00319.50
8.2.180.0200.00316.75
8.2.170.0040.01422.96
8.2.160.0030.01020.53
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00020.33
8.2.120.0070.00026.35
8.2.110.0040.00420.38
8.2.100.0080.00317.93
8.2.90.0050.00319.21
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0110.00017.87
8.2.50.0080.00018.07
8.2.40.0050.00321.25
8.2.30.0070.00020.61
8.2.20.0080.00017.84
8.2.10.0000.00818.02
8.2.00.0000.00717.98
8.1.280.0070.00725.92
8.1.270.0000.00723.87
8.1.260.0070.00028.09
8.1.250.0050.00328.09
8.1.240.0040.00422.04
8.1.230.0060.00619.32
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.64
8.1.180.0000.00718.10
8.1.170.0000.00818.65
8.1.160.0000.00721.94
8.1.150.0070.00018.70
8.1.140.0040.00419.58
8.1.130.0030.00317.69
8.1.120.0000.00717.41
8.1.110.0000.00717.34
8.1.100.0040.00417.37
8.1.90.0040.00417.44
8.1.80.0040.00417.39
8.1.70.0050.00217.33
8.1.60.0060.00317.55
8.1.50.0000.00817.57
8.1.40.0040.00417.40
8.1.30.0000.00817.61
8.1.20.0040.00417.60
8.1.10.0080.00017.55
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.34
8.0.270.0080.00017.24
8.0.260.0040.00417.23
8.0.250.0040.00416.89
8.0.240.0050.00316.99
8.0.230.0000.00717.05
8.0.220.0000.00716.93
8.0.210.0000.00716.92
8.0.200.0030.00316.96
8.0.190.0040.00417.01
8.0.180.0050.00316.80
8.0.170.0000.00816.87
8.0.160.0020.00516.82
8.0.150.0070.00016.97
8.0.140.0030.00616.93
8.0.130.0000.00513.32
8.0.120.0000.00816.82
8.0.110.0000.00816.93
8.0.100.0080.00016.80
8.0.90.0040.00316.75
8.0.80.0110.00716.86
8.0.70.0040.00416.88
8.0.60.0000.00817.04
8.0.50.0040.00417.00
8.0.30.0120.00617.00
8.0.20.0120.01017.40
8.0.10.0000.00716.88
8.0.00.0070.00916.64
7.4.330.0000.00516.70
7.4.320.0040.00416.57
7.4.300.0000.00616.42
7.4.290.0070.00016.55
7.4.280.0030.00616.39
7.4.270.0000.00716.38
7.4.260.0030.00316.36
7.4.250.0000.00716.47
7.4.240.0020.00616.47
7.4.230.0030.00316.55
7.4.220.0180.00616.45
7.4.210.0070.00716.46
7.4.200.0050.00216.32
7.4.160.0040.01116.61
7.4.150.0090.00917.40
7.4.140.0070.01217.86
7.4.130.0130.00616.55
7.4.120.0120.00616.58
7.4.110.0100.00716.63
7.4.100.0060.01616.53
7.4.90.0100.00716.49
7.4.80.0150.00619.39
7.4.70.0100.01016.53
7.4.60.0180.00016.32
7.4.50.0030.01216.51
7.4.40.0090.01216.48
7.4.30.0030.01416.14
7.4.00.0090.00914.93
7.3.330.0060.00013.23
7.3.320.0020.00313.15
7.3.310.0040.00416.37
7.3.300.0000.00716.30
7.3.290.0050.01016.32
7.3.280.0090.01116.33
7.3.270.0100.01317.40
7.3.260.0300.00316.43
7.3.250.0080.00816.30
7.3.240.0080.00916.38
7.3.230.0060.01016.39
7.3.210.0120.00916.50
7.3.200.0120.00316.32
7.3.190.0060.01016.24
7.3.180.0030.01716.38
7.3.170.0090.00916.38
7.3.160.0090.01216.33
7.3.120.0070.01014.83
7.3.110.0030.01314.82
7.3.100.0060.00614.70
7.3.90.0090.00314.65
7.3.80.0030.01014.90
7.3.70.0060.00614.53
7.3.60.0030.01214.64
7.3.50.0040.01114.81
7.3.40.0100.00314.80
7.3.30.0130.00014.86
7.3.20.0090.00616.45
7.3.10.0030.01216.72
7.3.00.0040.00816.64
7.2.330.0130.00616.57
7.2.320.0100.00616.66
7.2.310.0050.01416.68
7.2.300.0000.01616.34
7.2.290.0110.00616.49
7.2.250.0090.00915.20
7.2.240.0100.01014.90
7.2.230.0100.00715.02
7.2.220.0060.00914.92
7.2.210.0060.00314.94
7.2.200.0080.00614.92
7.2.190.0030.01314.72
7.2.180.0030.01414.62
7.2.170.0130.00015.03
7.2.130.0060.00916.81
7.2.120.0020.01216.89
7.2.110.0050.00716.85
7.2.100.0040.01116.89
7.2.90.0030.01216.73
7.2.80.0020.01016.84
7.2.70.0020.01116.91
7.2.60.0080.00516.89
7.2.50.0070.00716.90
7.2.40.0040.00916.98
7.2.30.0070.00816.96
7.2.20.0080.00716.88
7.2.10.0030.00916.77
7.2.00.0050.00917.81
7.1.330.0100.00315.45
7.1.320.0060.00315.65
7.1.310.0040.01216.02
7.1.300.0070.00315.74
7.1.290.0030.01215.61
7.1.280.0060.00615.68
7.1.270.0060.00915.71
7.1.260.0120.00015.71
7.1.250.0000.00915.70
7.1.200.0040.01215.76
7.1.100.0040.01117.77
7.1.70.0040.00416.80
7.1.60.0060.01919.36
7.1.50.0030.00916.66
7.1.00.0030.07322.35
7.0.200.0000.00916.43
7.0.60.0170.04019.95
7.0.50.0070.08017.84
7.0.40.0100.08020.08
7.0.30.0470.06320.02
7.0.20.0370.08020.09
7.0.10.0070.09020.30
7.0.00.0100.08720.16
5.6.280.0000.03320.90
5.6.210.0100.07720.56
5.6.200.0030.04318.16
5.6.190.0030.04720.61
5.6.180.0500.06720.27
5.6.170.0470.05720.49
5.6.160.0030.05720.50
5.6.150.0030.04018.07
5.6.140.0030.08718.18
5.6.130.0070.07718.14
5.6.120.0130.08021.11
5.6.110.0030.09021.00
5.6.100.0070.06021.10
5.6.90.0170.08021.12
5.6.80.0070.03720.38
5.5.350.0300.05020.41
5.5.340.0030.07017.96
5.5.330.0070.04720.07
5.5.320.0070.04320.51
5.5.310.0170.04020.24
5.5.300.0000.04017.87
5.5.290.0100.07318.01
5.5.280.0100.08320.65
5.5.270.0030.08020.86
5.5.260.0070.08720.76
5.5.250.0070.08720.54
5.5.240.0130.07720.22

preferences:
53.71 ms | 401 KiB | 5 Q