3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "This is some text {'JSON':'Object'} Here's some more text {'JSON':'Object'} Yet more text {'JSON':'Object'} Again, some text."; echo preg_replace('#\{.*?\}#s', '', $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.40.0090.00618.79
8.3.30.0120.00318.84
8.3.20.0040.00418.85
8.3.10.0030.00521.09
8.3.00.0040.00423.70
8.2.170.0100.01022.96
8.2.160.0130.00020.57
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0080.00021.00
8.2.110.0060.00320.39
8.2.100.0070.00417.72
8.2.90.0000.00819.08
8.2.80.0040.00417.97
8.2.70.0040.00417.60
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0000.00818.28
8.2.30.0060.00319.44
8.2.20.0040.00417.68
8.2.10.0040.00417.70
8.2.00.0050.00317.82
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00722.48
8.1.230.0040.00720.82
8.1.220.0040.00418.77
8.1.210.0000.00818.82
8.1.200.0000.01017.35
8.1.190.0000.00817.51
8.1.180.0090.00018.10
8.1.170.0040.00418.69
8.1.160.0030.00518.84
8.1.150.0000.00718.72
8.1.140.0030.00517.54
8.1.130.0000.00717.76
8.1.120.0080.00017.57
8.1.110.0050.00217.54
8.1.100.0030.00417.57
8.1.90.0030.00517.58
8.1.80.0040.00417.58
8.1.70.0030.00317.54
8.1.60.0030.00617.56
8.1.50.0040.00417.61
8.1.40.0000.00717.50
8.1.30.0030.00517.73
8.1.20.0000.00817.71
8.1.10.0000.00817.59
8.1.00.0000.00817.59
8.0.300.0070.00020.02
8.0.290.0000.00817.16
8.0.280.0070.00018.51
8.0.270.0030.00317.28
8.0.260.0070.00016.87
8.0.250.0040.00417.12
8.0.240.0040.00417.14
8.0.230.0000.00716.99
8.0.220.0000.00716.99
8.0.210.0000.00716.85
8.0.200.0060.00016.93
8.0.190.0040.00416.97
8.0.180.0000.00717.02
8.0.170.0030.00317.05
8.0.160.0070.00017.01
8.0.150.0070.00016.86
8.0.140.0070.00016.91
8.0.130.0000.00513.43
8.0.120.0060.00316.89
8.0.110.0080.00016.99
8.0.100.0000.00717.01
8.0.90.0040.00417.04
8.0.80.0060.01217.01
8.0.70.0040.00416.86
8.0.60.0040.00417.09
8.0.50.0040.00417.05
8.0.30.0110.01217.15
8.0.20.0150.00717.40
8.0.10.0040.00416.96
8.0.00.0150.00616.86
7.4.330.0030.00316.85
7.4.320.0070.00216.56
7.4.300.0000.00616.79
7.4.290.0030.00316.65
7.4.280.0030.00716.65
7.4.270.0040.00416.51
7.4.260.0030.00313.42
7.4.250.0030.00616.60
7.4.240.0070.00016.79
7.4.230.0030.00316.78
7.4.220.0090.00916.45
7.4.210.0080.00716.73
7.4.200.0000.00716.75
7.4.190.0000.00816.61
7.4.160.0130.00316.61
7.4.150.0100.00717.40
7.4.140.0130.01017.86
7.4.130.0140.00616.52
7.4.120.0060.01116.57
7.4.110.0070.01016.48
7.4.100.0070.01516.71
7.4.90.0130.01016.62
7.4.80.0100.00719.39
7.4.70.0070.01416.50
7.4.60.0070.01016.76
7.4.50.0090.00016.67
7.4.40.0070.00722.77
7.4.30.0100.01016.56
7.4.10.0070.01114.91
7.4.00.0050.01215.22
7.3.330.0050.00013.11
7.3.320.0050.00013.13
7.3.310.0070.00016.26
7.3.300.0040.00416.15
7.3.290.0120.00616.24
7.3.280.0080.00916.36
7.3.270.0180.01217.40
7.3.260.0100.01018.24
7.3.250.0130.00516.49
7.3.240.0120.00316.36
7.3.230.0070.01016.40
7.3.210.0090.01216.25
7.3.200.0060.01219.39
7.3.190.0100.00916.71
7.3.180.0060.01016.50
7.3.170.0100.00716.32
7.3.160.0120.00316.40
7.3.130.0090.00914.82
7.3.120.0090.00914.75
7.3.110.0080.00914.86
7.3.100.0060.00715.10
7.3.90.0050.00814.88
7.3.80.0020.01014.95
7.3.70.0060.00814.99
7.3.60.0080.00614.96
7.3.50.0050.01114.91
7.3.40.0010.01214.73
7.3.30.0050.00914.88
7.3.20.0090.00516.83
7.3.10.0050.00616.72
7.3.00.0020.01516.60
7.2.330.0100.00716.56
7.2.320.0040.01916.52
7.2.310.0130.00916.74
7.2.300.0080.00816.80
7.2.290.0090.00616.66
7.2.260.0100.01015.26
7.2.250.0090.00914.81
7.2.240.0030.00915.10
7.2.230.0050.00915.04
7.2.220.0050.01114.95
7.2.210.0050.01014.95
7.2.200.0030.00715.17
7.2.190.0100.00514.96
7.2.180.0070.00715.04
7.2.170.0100.00415.19
7.2.160.0100.00514.92
7.2.150.0080.00517.05
7.2.140.0070.00516.95
7.2.130.0070.00516.87
7.2.120.0090.00316.96
7.2.110.0000.01417.01
7.2.100.0030.01017.04
7.2.90.0070.00616.88
7.2.80.0070.00616.89
7.2.70.0080.00916.89
7.2.60.0120.00316.85
7.2.50.0060.00717.05
7.2.40.0050.00716.96
7.2.30.0080.00816.92
7.2.20.0070.00516.97
7.2.10.0040.00816.91
7.2.00.0040.00916.98
7.1.330.0060.00615.91
7.1.320.0070.00715.64
7.1.310.0060.00515.71
7.1.300.0050.00815.96
7.1.290.0000.01015.82
7.1.280.0080.00615.95
7.1.270.0030.01315.88
7.1.260.0050.00915.83
7.1.250.0030.01015.65
7.1.240.0030.01015.96
7.1.230.0060.01015.97
7.1.220.0060.00315.91
7.1.210.0030.00915.93
7.1.200.0030.00716.04
7.1.190.0060.00616.07
7.1.180.0040.00815.80
7.1.170.0070.00416.09
7.1.160.0060.00915.78
7.1.150.0060.01215.67
7.1.140.0060.00315.68
7.1.130.0060.00915.92
7.1.120.0060.00915.94
7.1.110.0000.00915.73
7.1.100.0030.00817.13
7.1.90.0040.00815.89
7.1.80.0080.00816.05
7.1.70.0050.00716.43
7.1.60.0060.00616.58
7.1.50.0080.00916.59
7.1.40.0070.00715.76
7.1.30.0030.00915.78
7.1.20.0120.00015.90
7.1.10.0040.01115.93
7.1.00.0020.03319.10
7.0.330.0090.00315.48
7.0.320.0100.00015.30
7.0.310.0030.00915.63
7.0.300.0040.00815.66
7.0.290.0030.00615.34
7.0.280.0030.01015.25
7.0.270.0000.01415.29
7.0.260.0000.01215.35
7.0.250.0030.01015.54
7.0.240.0070.00315.47
7.0.230.0090.00615.41
7.0.220.0030.01015.32
7.0.210.0030.01415.36
7.0.200.0070.00916.24
7.0.190.0060.00615.64
7.0.180.0060.00615.37
7.0.170.0030.00615.62
7.0.160.0060.00615.48
7.0.150.0030.01215.70
7.0.140.0050.03718.83
7.0.130.0050.00515.61
7.0.120.0070.00615.35
7.0.110.0060.00615.66
7.0.100.0020.02817.81
7.0.90.0150.04017.75
7.0.80.0240.04117.69
7.0.70.0200.02517.78
7.0.60.0150.03817.73
7.0.50.0250.04018.02
7.0.40.0030.04316.84
7.0.30.0080.04016.84
7.0.20.0050.04916.77
7.0.10.0060.04116.84
7.0.00.0110.03816.88
5.6.400.0140.00014.43
5.6.390.0050.00314.24
5.6.380.0090.00314.64
5.6.370.0130.00314.49
5.6.360.0060.00314.41
5.6.350.0060.01014.16
5.6.340.0090.00914.42
5.6.330.0110.00414.27
5.6.320.0040.00914.26
5.6.310.0060.00314.21
5.6.300.0040.01214.59
5.6.290.0000.01514.00
5.6.280.0030.04217.55
5.6.270.0120.00314.35
5.6.260.0070.00314.23
5.6.250.0090.02317.45
5.6.240.0070.02517.50
5.6.230.0040.02717.44
5.6.220.0050.04817.47
5.6.210.0070.04217.34
5.6.200.0070.04317.59
5.6.190.0090.04017.76
5.6.180.0050.04617.59
5.6.170.0050.02817.74
5.6.160.0070.04517.73
5.6.150.0030.04717.69
5.6.140.0070.04717.59
5.6.130.0050.04317.61
5.6.120.0070.04717.72
5.6.110.0050.04317.52
5.6.100.0050.04817.58
5.6.90.0070.04517.64
5.6.80.0110.03717.42
5.6.70.0060.04017.24
5.6.60.0070.04017.35
5.6.50.0080.03017.43
5.6.40.0030.04817.26
5.6.30.0100.03917.24
5.6.20.0080.04217.43
5.6.10.0080.03517.37
5.6.00.0030.04617.17
5.5.380.0080.04217.13
5.5.370.0070.03817.41
5.5.360.0080.04317.47
5.5.350.0050.04517.32
5.5.340.0080.03817.41
5.5.330.0050.04317.55
5.5.320.0120.03817.48
5.5.310.0030.04517.47
5.5.300.0030.04817.59
5.5.290.0070.04217.52
5.5.280.0050.02717.62
5.5.270.0090.04217.49
5.5.260.0060.02617.42
5.5.250.0090.04217.32
5.5.240.0070.04317.08
5.5.230.0020.02417.06
5.5.220.0070.04017.12
5.5.210.0060.03917.19
5.5.200.0070.04217.18
5.5.190.0100.04317.21
5.5.180.0090.04017.13
5.5.170.0000.01014.25
5.5.160.0050.04217.11
5.5.150.0090.02017.15
5.5.140.0090.01817.29
5.5.130.0040.02217.06
5.5.120.0030.02517.21
5.5.110.0090.01817.16
5.5.100.0070.02217.02
5.5.90.0070.02516.99
5.5.80.0050.02317.04
5.5.70.0080.01817.13
5.5.60.0070.03217.10
5.5.50.0020.02517.07
5.5.40.0050.02217.03
5.5.30.0020.02917.14
5.5.20.0060.02317.12
5.5.10.0050.02717.18
5.5.00.0030.02816.99
5.4.450.0070.04715.12
5.4.440.0030.04815.26
5.4.430.0050.04015.22
5.4.420.0070.02215.23
5.4.410.0050.04615.15
5.4.400.0050.04115.06
5.4.390.0020.04315.09
5.4.380.0050.03215.09
5.4.370.0000.03215.07
5.4.360.0080.03215.06
5.4.350.0090.04315.05
5.4.340.0080.02115.02
5.4.330.0060.00311.07
5.4.320.0000.04214.93
5.4.310.0050.02014.93
5.4.300.0050.02715.00
5.4.290.0030.02115.06
5.4.280.0050.02315.05
5.4.270.0050.01814.94
5.4.260.0030.02215.09
5.4.250.0050.02215.04
5.4.240.0050.02014.98
5.4.230.0020.02215.09
5.4.220.0050.02215.14
5.4.210.0030.02014.93
5.4.200.0070.02015.09
5.4.190.0040.02414.93
5.4.180.0090.01515.06
5.4.170.0060.02015.08
5.4.160.0040.02015.11
5.4.150.0060.02215.07
5.4.140.0050.01513.71
5.4.130.0020.01813.70
5.4.120.0030.02113.78
5.4.110.0030.02213.64
5.4.100.0050.02013.70
5.4.90.0000.02513.71
5.4.80.0030.02113.74
5.4.70.0050.02013.73
5.4.60.0050.02213.64
5.4.50.0070.01713.67
5.4.40.0040.02213.68
5.4.30.0060.01813.71
5.4.20.0020.03513.63
5.4.10.0050.01913.74
5.4.00.0020.01913.42
5.3.290.0050.02912.86
5.3.280.0020.02412.82
5.3.270.0020.02212.82
5.3.260.0030.02212.83
5.3.250.0020.02412.74
5.3.240.0080.01812.83
5.3.230.0050.01512.82
5.3.220.0040.02112.74
5.3.210.0020.03412.80
5.3.200.0030.02212.77
5.3.190.0050.03312.74
5.3.180.0060.02612.73
5.3.170.0030.02312.81
5.3.160.0030.02312.73
5.3.150.0030.02212.74
5.3.140.0030.02112.78
5.3.130.0050.02212.80
5.3.120.0060.01612.73
5.3.110.0080.01612.76
5.3.100.0090.01512.54
5.3.90.0050.01912.48
5.3.80.0030.02012.47
5.3.70.0030.02012.54
5.3.60.0020.02112.46
5.3.50.0020.02112.50
5.3.40.0060.01812.50
5.3.30.0030.01912.45
5.3.20.0030.03012.36
5.3.10.0030.02312.31
5.3.00.0000.02912.28
5.2.170.0000.03011.13
5.2.160.0030.02710.98
5.2.150.0000.03311.18
5.2.140.0030.04011.09
5.2.130.0000.03710.91
5.2.120.0030.03011.05
5.2.110.0070.02310.88
5.2.100.0000.04310.93
5.2.90.0100.05710.93
5.2.80.0070.06311.11
5.2.70.0070.06011.04
5.2.60.0030.05710.91
5.2.50.0030.03011.01
5.2.40.0070.06011.04
5.2.30.0030.04711.01
5.2.20.0000.06310.98
5.2.10.0100.05710.88
5.2.00.0070.03710.73
5.1.60.0070.02310.00
5.1.50.0000.03010.01
5.1.40.0100.0439.96
5.1.30.0030.03310.28
5.1.20.0070.05310.40
5.1.10.0070.0309.94
5.1.00.0030.03310.05
5.0.50.0030.0438.79
5.0.40.0030.0238.79
5.0.30.0030.0508.79
5.0.20.0070.0408.79
5.0.10.0070.0278.79
5.0.00.0070.0608.79
4.4.90.0000.0308.79
4.4.80.0000.0238.79
4.4.70.0030.0338.79
4.4.60.0030.0378.79
4.4.50.0030.0378.79
4.4.40.0000.0578.79
4.4.30.0030.0178.79
4.4.20.0000.0378.79
4.4.10.0000.0238.79
4.4.00.0030.0408.79
4.3.110.0000.0378.79
4.3.100.0100.0108.79
4.3.90.0030.0338.79
4.3.80.0070.0478.79
4.3.70.0000.0208.79
4.3.60.0030.0238.79
4.3.50.0070.0338.79
4.3.40.0000.0578.79
4.3.30.0030.0308.79
4.3.20.0030.0378.79
4.3.10.0100.0278.79
4.3.00.0000.0378.79

preferences:
46.22 ms | 404 KiB | 6 Q