3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\\\\o\{([^}]+)\}/m'; $str = 'hello \\o{test} how are you?'; $subst = '<span>$1</span>'; echo preg_replace($re, $subst, $str); ?>

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.01418.55
8.3.50.0120.00316.52
8.3.40.0090.00618.90
8.3.30.0110.00718.68
8.3.20.0050.00318.90
8.3.10.0030.00523.56
8.3.00.0000.00721.77
8.2.180.0030.01316.63
8.2.170.0150.00022.96
8.2.160.0070.00719.40
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0000.00821.25
8.2.120.0070.00026.35
8.2.110.0040.00422.21
8.2.100.0060.00617.84
8.2.90.0040.00419.75
8.2.80.0040.00418.04
8.2.70.0090.00017.80
8.2.60.0080.00018.22
8.2.50.0030.00618.10
8.2.40.0040.00419.23
8.2.30.0000.00820.59
8.2.20.0000.00817.95
8.2.10.0040.00418.07
8.2.00.0000.00819.38
8.1.280.0070.01325.92
8.1.270.0060.00323.99
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0040.00418.93
8.1.230.0080.00322.66
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0050.00318.84
8.1.150.0060.00318.84
8.1.140.0060.00320.50
8.1.130.0070.00020.19
8.1.120.0000.00717.59
8.1.110.0000.00717.46
8.1.100.0070.00317.55
8.1.90.0000.00717.50
8.1.80.0040.00417.43
8.1.70.0060.00317.55
8.1.60.0040.00417.54
8.1.50.0040.00417.63
8.1.40.0040.00417.61
8.1.30.0050.00317.66
8.1.20.0030.00717.68
8.1.10.0000.00717.68
8.1.00.0050.00217.55
8.0.300.0050.00219.70
8.0.290.0030.00516.88
8.0.280.0000.00718.44
8.0.270.0000.00716.89
8.0.260.0030.00322.01
8.0.250.0060.00317.09
8.0.240.0000.00617.00
8.0.230.0000.00816.88
8.0.220.0050.00216.86
8.0.210.0050.00316.83
8.0.200.0070.00017.02
8.0.190.0080.00016.91
8.0.180.0000.00817.01
8.0.170.0000.00916.86
8.0.160.0000.00717.01
8.0.150.0080.00016.79
8.0.140.0040.00416.85
8.0.130.0000.00513.32
8.0.120.0050.00316.90
8.0.110.0040.00416.94
8.0.100.0050.00316.95
8.0.90.0000.00716.92
8.0.80.0090.00716.89
8.0.70.0020.00517.03
8.0.60.0000.00816.86
8.0.50.0000.00716.86
8.0.30.0120.00817.09
8.0.20.0130.01017.40
8.0.10.0080.00017.20
8.0.00.0080.01017.00
7.4.330.0060.00015.55
7.4.320.0000.00716.63
7.4.300.0030.00316.66
7.4.290.0040.00416.73
7.4.280.0040.00416.64
7.4.270.0040.00416.65
7.4.260.0030.00716.69
7.4.250.0000.00716.56
7.4.240.0070.00016.75
7.4.230.0030.00316.54
7.4.220.0040.00416.54
7.4.210.0060.01016.76
7.4.200.0030.00316.73
7.4.160.0070.00916.45
7.4.140.0080.01017.86
7.4.130.0160.00916.66
7.4.120.0080.01016.67
7.4.110.0110.00616.71
7.4.100.0110.00516.89
7.4.90.0120.01416.71
7.4.80.0130.00719.39
7.4.70.0030.01316.61
7.4.60.0200.00316.29
7.4.50.0090.00616.60
7.4.40.0070.01316.60
7.4.00.0030.01115.17
7.3.330.0020.00213.19
7.3.320.0060.00013.12
7.3.310.0030.00316.39
7.3.300.0000.00716.30
7.3.290.0030.00316.27
7.3.280.0100.00516.31
7.3.260.0080.01016.46
7.3.240.0120.00816.47
7.3.230.0090.00616.24
7.3.210.0060.01016.61
7.3.200.0080.00816.30
7.3.190.0090.00616.33
7.3.180.0100.00616.28
7.3.170.0040.01216.72
7.3.160.0130.00616.64
7.3.120.0070.01314.80
7.3.110.0000.02014.68
7.3.100.0090.00314.41
7.3.90.0000.00914.59
7.3.80.0120.00014.80
7.3.70.0080.00814.83
7.3.60.0040.00714.78
7.3.50.0070.01014.62
7.3.40.0100.00714.61
7.3.30.0060.00914.77
7.3.20.0040.01216.56
7.3.10.0030.01016.82
7.3.00.0090.00416.86
7.2.330.0120.00616.58
7.2.320.0100.00616.77
7.2.310.0070.01416.68
7.2.300.0140.00716.57
7.2.290.0040.01416.59
7.2.250.0120.00614.92
7.2.240.0090.01215.14
7.2.230.0000.01515.02
7.2.220.0040.01214.97
7.2.210.0070.00715.11
7.2.200.0000.01015.03
7.2.190.0060.00614.77
7.2.180.0130.00615.11
7.2.170.0060.01015.14
7.2.90.1120.00014.78
7.2.80.0880.00314.71
7.2.70.0950.01315.21
7.2.60.0970.01015.07
7.2.50.0960.00314.92
7.2.40.1000.01315.07
7.2.30.2210.01014.90
7.2.20.1310.00314.96
7.2.10.1050.00714.72
7.2.00.1060.00315.09
7.1.330.0070.00716.07
7.1.320.0000.01415.78
7.1.310.0070.00716.03
7.1.300.0110.00415.67
7.1.290.0040.00715.76
7.1.280.0030.01316.01
7.1.270.0080.00815.67
7.1.260.0110.00315.88
7.1.210.1350.00713.94
7.1.200.0970.01014.13
7.1.190.1050.00013.81
7.1.180.1110.00614.17
7.1.170.1360.00614.14
7.1.160.1050.00614.18
7.1.150.1280.00314.12
7.1.140.0940.01313.84
7.1.130.1030.01014.15
7.1.120.0960.00914.12
7.1.110.1040.00714.06
7.1.100.1380.00614.00
7.1.90.1250.01313.96
7.1.80.0990.01314.00
7.1.70.1310.00713.89
7.1.60.1200.00731.98
7.1.50.1510.00731.73
7.1.40.1120.01331.40
7.1.30.1420.01031.81
7.1.20.1650.00331.61
7.1.10.1300.00713.82
7.1.00.1340.00713.86

preferences:
54.35 ms | 400 KiB | 5 Q