3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'The $girl$ is a $good$ person'; echo preg_replace('/\$[^\s$]+\$/', '\$$0\$', $text);

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.30.0090.00818.77
8.5.20.0100.00819.55
8.5.10.0090.00816.95
8.5.00.0130.00820.14
8.4.180.0120.01119.71
8.4.170.0160.00523.79
8.4.160.0130.01023.09
8.4.150.0080.00416.87
8.4.140.0090.01217.65
8.4.130.0130.00718.56
8.4.120.0120.00724.15
8.4.110.0050.00419.08
8.4.100.0140.00817.97
8.4.90.0030.00620.55
8.4.80.0020.00619.52
8.4.70.0120.00818.08
8.4.60.0060.00218.54
8.4.50.0130.00519.53
8.4.40.0000.01617.95
8.4.30.0120.00620.20
8.4.20.0120.00918.07
8.4.10.0060.00319.77
8.3.300.0110.01020.95
8.3.290.0130.00720.81
8.3.280.0120.00818.50
8.3.270.0130.00616.77
8.3.260.0110.00716.61
8.3.250.0100.00918.74
8.3.240.0070.00217.12
8.3.230.0090.01116.38
8.3.220.0020.00517.26
8.3.210.0120.00616.84
8.3.200.0020.00616.80
8.3.190.0110.00716.27
8.3.180.0020.00616.72
8.3.170.0060.01217.04
8.3.160.0110.00320.39
8.3.150.0140.00417.22
8.3.140.0000.00816.66
8.3.130.0000.00818.46
8.3.120.0080.00018.77
8.3.110.0060.00316.63
8.3.100.0060.00924.06
8.3.90.0000.00926.77
8.3.80.0090.00016.50
8.3.70.0110.00716.58
8.3.60.0070.00718.31
8.3.50.0100.01019.75
8.3.40.0060.01618.87
8.3.30.0100.00318.84
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0000.00826.16
8.2.300.0140.00720.28
8.2.290.0100.01020.55
8.2.280.0040.00417.01
8.2.270.0100.00717.42
8.2.260.0040.00418.79
8.2.250.0060.00316.95
8.2.240.0060.00318.85
8.2.230.0060.00320.94
8.2.220.0150.00437.54
8.2.210.0060.01226.77
8.2.200.0030.00616.63
8.2.190.0140.00716.63
8.2.180.0170.00325.92
8.2.170.0120.00318.84
8.2.160.0070.00722.96
8.2.150.0030.00625.66
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0080.00021.30
8.2.110.0090.00022.11
8.2.100.0120.00018.03
8.2.90.0000.00919.13
8.2.80.0050.00317.97
8.2.70.0030.00617.75
8.2.60.0080.00018.05
8.2.50.0050.00318.10
8.2.40.0040.00418.16
8.2.30.0000.00817.89
8.2.20.0070.00020.71
8.2.10.0040.00417.77
8.2.00.0030.00719.11
8.1.340.0110.00817.79
8.1.330.0150.00616.29
8.1.320.0130.00716.55
8.1.310.0080.01118.46
8.1.300.0000.00918.07
8.1.290.0110.00018.88
8.1.280.0150.00425.92
8.1.270.0000.01021.96
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0060.00322.19
8.1.230.0090.00319.06
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0040.00518.10
8.1.170.0030.00618.39
8.1.160.0070.00018.95
8.1.150.0000.00718.68
8.1.140.0000.00717.45
8.1.130.0030.00318.84
8.1.120.0080.00317.51
8.1.110.0000.00817.54
8.1.100.0050.00317.48
8.1.90.0000.00817.45
8.1.80.0000.00717.55
8.1.70.0070.00017.58
8.1.60.0030.00617.66
8.1.50.0040.00417.66
8.1.40.0040.00417.57
8.1.30.0000.00817.57
8.1.20.0000.00817.70
8.1.10.0040.00417.65
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.48
8.0.270.0040.00416.99
8.0.260.0030.00318.46
8.0.250.0040.00316.97
8.0.240.0000.00816.99
8.0.230.0030.00316.88
8.0.220.0030.00316.99
8.0.210.0000.00716.86
8.0.200.0030.00317.00
8.0.190.0040.00417.09
8.0.180.0000.00716.89
8.0.170.0060.00316.88
8.0.160.0030.00616.84
8.0.150.0030.00616.94
8.0.140.0040.00416.93
8.0.130.0080.00816.74
8.0.120.0160.00316.91
8.0.110.0120.00616.90
8.0.100.0110.00816.82
8.0.90.0160.00316.83
8.0.80.0150.00416.84
8.0.70.0190.00016.92
8.0.60.0120.00816.73
8.0.50.0150.00416.85
8.0.30.0120.00816.96
8.0.20.0130.00516.89
8.0.10.0150.00316.86
8.0.00.0120.00017.09
7.4.330.0050.00015.55
7.4.320.0030.00316.64
7.4.300.0030.00316.75
7.4.290.0030.00316.50
7.4.280.0000.00716.53
7.4.270.0030.00316.72
7.4.260.0150.00616.52
7.4.250.0180.00316.60
7.4.240.0240.00016.69
7.4.230.0240.00016.61
7.4.220.0200.00016.67
7.4.210.0110.00716.68
7.4.200.0140.00516.56
7.4.190.0180.00016.64
7.4.180.0150.00316.55
7.4.160.0150.00316.55
7.4.150.0160.00216.65
7.4.140.0150.00516.53
7.4.130.0180.00016.71
7.4.120.0190.00016.53
7.4.110.0120.00616.49
7.4.100.0150.00316.72
7.4.90.0120.00616.44
7.4.80.0130.00516.67
7.4.70.0060.01216.63
7.4.60.0150.00316.52
7.4.50.0070.01016.55
7.4.40.0140.00516.54
7.4.30.0140.00416.51
7.4.20.0180.00016.58
7.4.10.0180.00016.43
7.4.00.0130.00616.57
7.3.330.0150.00316.13
7.3.320.0150.00416.20
7.3.310.0120.00616.29
7.3.300.0190.00016.28
7.3.290.0180.00016.37
7.3.280.0190.00016.24
7.3.270.0190.00016.29
7.3.260.0170.00316.09
7.3.250.0170.00316.26
7.3.240.0210.00016.10
7.3.230.0080.00716.32
7.3.220.0000.00816.24
7.3.210.0040.00516.22
7.3.200.0090.00316.08
7.3.190.0000.01116.27
7.3.180.0160.00316.23
7.3.170.0130.00516.25
7.3.160.0170.00316.23
7.3.150.0150.00315.96
7.3.140.0110.00816.09
7.3.130.0170.00315.96
7.3.120.0150.00316.17
7.3.110.0200.00016.15
7.3.100.0170.00215.91
7.3.90.0170.00316.63
7.3.80.0110.00816.17
7.3.70.0150.00416.21
7.3.60.0150.00416.23
7.3.50.0170.00316.35
7.3.40.0150.00416.48
7.3.30.0160.00316.45
7.3.20.0160.00318.04
7.3.10.0150.00418.13
7.3.00.0110.00818.23

preferences:
59.62 ms | 1383 KiB | 5 Q