3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = array( '/\[\s]+/s', '/\[\s]+/s', ); $replace = array( '>', '<', '\\1' ); echo preg_replace($search, $replace, ' hola que tal kjahs jkhasd asd sad asd das sda f re');

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.0100.01018.43
8.3.50.0050.01222.05
8.3.40.0070.00718.79
8.3.30.0040.01119.02
8.3.20.0060.00320.51
8.3.10.0080.00023.52
8.3.00.0040.00419.43
8.2.180.0210.00016.38
8.2.170.0140.00722.96
8.2.160.0070.00720.39
8.2.150.0110.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00421.01
8.2.110.0030.00620.38
8.2.100.0030.01017.91
8.2.90.0090.00019.21
8.2.80.0040.00419.28
8.2.70.0030.00517.88
8.2.60.0030.00518.03
8.2.50.0080.00018.07
8.2.40.0000.00818.21
8.2.30.0000.00819.57
8.2.20.0050.00317.89
8.2.10.0000.00718.00
8.2.00.0040.00417.82
8.1.280.0090.01225.92
8.1.270.0050.00322.06
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00023.75
8.1.230.0040.00820.97
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0000.00917.22
8.1.190.0050.00217.39
8.1.180.0030.00518.10
8.1.170.0050.00318.64
8.1.160.0000.00718.75
8.1.150.0070.00018.79
8.1.140.0000.00717.41
8.1.130.0000.00717.91
8.1.120.0000.00717.57
8.1.110.0030.00617.55
8.1.100.0040.00417.42
8.1.90.0030.00317.45
8.1.80.0070.00017.40
8.1.70.0050.00217.50
8.1.60.0030.00617.68
8.1.50.0040.00417.59
8.1.40.0030.00717.49
8.1.30.0040.00417.78
8.1.20.0000.00817.59
8.1.10.0000.00717.57
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0040.00418.37
8.0.270.0050.00217.29
8.0.260.0040.00417.20
8.0.250.0070.00017.07
8.0.240.0000.00717.03
8.0.230.0030.00316.98
8.0.220.0000.00716.99
8.0.210.0060.00016.84
8.0.200.0000.00717.02
8.0.190.0000.00816.96
8.0.180.0040.00417.00
8.0.170.0020.00516.99
8.0.160.0000.00716.93
8.0.150.0070.00016.88
8.0.140.0080.00016.90
8.0.130.0000.00613.33
8.0.120.0040.00416.95
8.0.110.0040.00416.88
8.0.100.0040.00416.92
8.0.90.0070.00016.92
8.0.80.0110.01116.97
8.0.70.0040.00416.82
8.0.60.0070.00016.95
8.0.50.0050.00317.08
8.0.30.0100.00917.28
8.0.20.0100.01017.40
8.0.10.0070.00016.88
8.0.00.0090.00816.84
7.4.330.0060.00015.02
7.4.320.0000.00716.66
7.4.300.0000.00616.56
7.4.290.0040.00416.54
7.4.280.0030.00716.72
7.4.270.0030.00316.56
7.4.260.0000.00716.68
7.4.250.0080.00016.72
7.4.240.0020.00516.60
7.4.230.0030.00316.75
7.4.220.0060.01216.80
7.4.210.0110.00416.82
7.4.200.0000.00816.63
7.4.160.0090.00616.79
7.4.150.0030.01417.40
7.4.140.0130.00517.86
7.4.130.0080.01316.66
7.4.120.0100.01016.63
7.4.110.0120.00916.68
7.4.100.0030.02016.69
7.4.90.0130.00616.65
7.4.80.0250.01819.39
7.4.70.0070.01016.64
7.4.60.0150.00616.74
7.4.50.0030.00616.54
7.4.40.0110.00516.47
7.4.30.0090.00916.73
7.4.00.0100.00715.16
7.3.330.0030.00312.98
7.3.320.0030.00312.99
7.3.310.0030.00316.22
7.3.300.0030.00316.27
7.3.290.0050.00916.30
7.3.280.0110.00616.29
7.3.270.0030.01317.40
7.3.260.0070.01116.65
7.3.250.0110.01216.40
7.3.240.0120.00416.56
7.3.230.0100.00716.50
7.3.210.0100.00716.64
7.3.200.0050.01819.39
7.3.190.0030.01316.59
7.3.180.0030.01216.54
7.3.170.0130.00316.31
7.3.160.0060.01416.64
7.2.330.0070.01016.73
7.2.320.0170.00016.61
7.2.310.0090.00916.76
7.2.300.0100.00616.77
7.2.290.0030.01416.77
7.2.60.0080.00516.87
7.2.00.0000.01219.14
7.1.200.0070.00715.99
7.1.100.0030.01118.57
7.1.70.0080.00817.26
7.1.60.0000.02319.34
7.1.50.0070.01717.11
7.1.00.0100.07022.34
7.0.200.0120.00316.57
7.0.140.0070.02722.07
7.0.60.0070.05020.00
7.0.50.0070.08317.89
7.0.40.0100.08020.06
7.0.30.0400.06020.02
7.0.20.0100.06720.14
7.0.10.0030.08020.11
7.0.00.0000.04320.14
5.6.280.0000.07720.98
5.6.210.0070.07020.69
5.6.200.0030.08018.22
5.6.190.0100.04720.43
5.6.180.0270.08020.39
5.6.170.0300.05720.71
5.6.160.0130.07320.48
5.6.150.0100.08018.21
5.6.140.0070.03318.10
5.6.130.0030.04018.09
5.6.120.0170.05720.98
5.6.110.0100.08320.96
5.6.100.0100.08020.97
5.6.90.0100.07021.09
5.6.80.0130.07020.38
5.6.70.2600.03020.27
5.5.350.0370.06020.38
5.5.340.0070.07317.91
5.5.330.0100.08320.21
5.5.320.0370.07020.21
5.5.310.0300.07720.41
5.5.300.0070.08018.00
5.5.290.0100.04717.91
5.5.280.0130.08020.84
5.5.270.0070.07720.75
5.5.260.0070.08320.83
5.5.250.0100.07320.58
5.5.240.4200.04320.02
5.4.450.0500.03719.46
5.4.440.0130.03019.13
5.4.430.0800.03019.48
5.4.420.0070.05719.27
5.4.410.0230.06018.72
5.4.400.0100.06718.76
5.4.390.0070.06018.50
5.4.380.0130.07318.65
5.4.370.0070.05718.74
5.4.360.0130.04718.68
5.4.350.0000.04713.59
5.4.340.0130.03313.68
5.4.320.0130.04014.27
5.4.310.0070.04314.16
5.4.300.0170.03314.09
5.4.290.0100.04014.11
5.4.280.0100.03314.09
5.4.270.0130.04014.09
5.4.260.0130.03714.16
5.4.250.0030.04314.05
5.4.240.0070.04313.96
5.4.230.0070.04014.01
5.4.220.0100.04314.00
5.4.210.0070.04014.08
5.4.200.0170.03014.08
5.4.190.0170.03314.08
5.4.180.0100.03714.01
5.4.170.0030.04314.04
5.4.160.0030.04014.07
5.4.150.0070.03714.03
5.4.140.0100.03713.71
5.4.130.0130.03713.62
5.4.120.0130.03013.64
5.4.110.0030.04013.59
5.4.100.0100.04013.65
5.4.90.0130.03313.62
5.4.80.0130.03713.77
5.4.70.0100.03313.62
5.4.60.0030.04313.78
5.4.50.0030.04013.60
5.4.40.0130.03313.65
5.4.30.0070.04013.61
5.4.20.0100.03713.62
5.4.10.0070.03713.61
5.4.00.0100.04013.11
5.3.290.0200.04314.70
5.3.280.0270.03014.46
5.3.270.0130.03714.67
5.3.260.0100.04314.59
5.3.250.0100.04314.51
5.3.240.0070.04314.68
5.3.230.0170.03314.50
5.3.220.0200.03014.63
5.3.210.0130.04714.49
5.3.200.0100.03714.56
5.3.190.0070.04314.42
5.3.180.0170.03014.50
5.3.170.0070.04314.62
5.3.160.0100.04014.49
5.3.150.0200.03714.52
5.3.140.0100.03714.54
5.3.130.0070.04314.42
5.3.120.0070.04314.45
5.3.110.0100.04014.47
5.3.100.0170.03714.08
5.3.90.0070.04014.08
5.3.80.0070.04313.98
5.3.70.0030.04313.99
5.3.60.0070.04013.90
5.3.50.0130.03313.80
5.3.40.0130.03714.01
5.3.30.0100.03713.83
5.3.20.0030.05013.79
5.3.10.0100.03313.58
5.3.00.0170.05013.56
5.2.170.0130.02711.27
5.2.160.0070.03011.30
5.2.150.0070.03711.16
5.2.140.0100.03711.26
5.2.130.0100.02711.12
5.2.120.0030.03311.02
5.2.110.0100.02711.07
5.2.100.0100.04011.10
5.2.90.0070.03711.02
5.2.80.0130.02711.00
5.2.70.0070.03311.04
5.2.60.0030.04010.95
5.2.50.0030.03710.94
5.2.40.0100.02711.04
5.2.30.0100.02711.10
5.2.20.0100.02711.11
5.2.10.0130.02310.75
5.2.00.0130.02710.68
5.1.60.0170.0209.90
5.1.50.0000.0339.94
5.1.40.0100.0209.95
5.1.30.0170.02010.37
5.1.20.0100.02310.37
5.1.10.0130.02010.13
5.1.00.0130.02310.05
5.0.50.0030.0308.61
5.0.40.0030.0278.44
5.0.30.0100.0238.27
5.0.20.0070.0208.14
5.0.10.0030.0208.29
5.0.00.0030.0338.06
4.4.90.0000.0205.82
4.4.80.0100.0105.92
4.4.70.0030.0175.81
4.4.60.0030.0175.95
4.4.50.0030.0175.85
4.4.40.0070.0275.88
4.4.30.0100.0135.79
4.4.20.0000.0205.94
4.4.10.0000.0205.90
4.4.00.0030.0275.85
4.3.110.0070.0135.79
4.3.100.0070.0135.76
4.3.90.0030.0205.84
4.3.80.0000.0375.80
4.3.70.0000.0175.72
4.3.60.0070.0135.73
4.3.50.0100.0205.77
4.3.40.0000.0305.80
4.3.30.0070.0234.58
4.3.20.0030.0204.47
4.3.10.0030.0174.47
4.3.00.0030.01717.02

preferences:
68.45 ms | 401 KiB | 5 Q