3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test='lalala "foo bar" lalala'; $test = preg_replace_callback( '#"([^"]+)"#si', function ($match) { return stripslashes(str_replace(' ', '*', $match[0])); }, $test ); echo $test;

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.70.0090.00618.31
8.3.60.0150.00418.43
8.3.50.0130.00623.01
8.3.40.0090.00618.92
8.3.30.0110.00319.02
8.3.20.0070.00020.21
8.3.10.0000.00821.77
8.3.00.0030.00718.92
8.2.190.0150.00416.63
8.2.180.0000.01416.63
8.2.170.0090.00922.96
8.2.160.0070.01020.43
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00422.38
8.2.120.0060.00326.35
8.2.110.0050.00521.06
8.2.100.0040.00817.93
8.2.90.0030.00619.09
8.2.80.0040.00417.97
8.2.70.0090.00017.88
8.2.60.0030.00517.93
8.2.50.0030.00518.10
8.2.40.0070.00020.35
8.2.30.0070.00019.35
8.2.20.0000.00717.90
8.2.10.0040.00418.15
8.2.00.0000.00718.05
8.1.280.0070.01025.92
8.1.270.0060.00323.75
8.1.260.0000.00928.09
8.1.250.0040.00428.09
8.1.240.0080.00421.40
8.1.230.0080.00417.64
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.50
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00818.73
8.1.160.0080.00018.94
8.1.150.0060.00318.92
8.1.140.0080.00019.61
8.1.130.0030.00317.76
8.1.120.0050.00317.64
8.1.110.0000.00817.46
8.1.100.0040.00417.67
8.1.90.0000.00717.60
8.1.80.0000.00717.53
8.1.70.0000.00717.52
8.1.60.0040.00417.70
8.1.50.0030.00617.75
8.1.40.0070.00417.72
8.1.30.0030.00717.79
8.1.20.0080.00017.79
8.1.10.0070.00317.66
8.1.00.0030.00517.64
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0000.00718.50
8.0.270.0040.00417.23
8.0.260.0030.00317.33
8.0.250.0040.00417.00
8.0.240.0000.01017.00
8.0.230.0030.00317.02
8.0.220.0070.00016.96
8.0.210.0030.00516.96
8.0.200.0030.00317.09
8.0.190.0100.00017.13
8.0.180.0000.00717.07
8.0.170.0030.00517.07
8.0.160.0070.00016.95
8.0.150.0040.00417.02
8.0.140.0070.00016.95
8.0.130.0000.00513.53
8.0.120.0090.00017.02
8.0.110.0050.00316.92
8.0.100.0000.00816.88
8.0.90.0050.00316.93
8.0.80.0090.01317.08
8.0.70.0080.00017.09
8.0.60.0000.00717.10
8.0.50.0000.00817.07
8.0.30.0080.01017.37
8.0.20.0120.00717.48
8.0.10.0000.00817.01
8.0.00.0030.01417.03
7.4.330.0000.00515.08
7.4.320.0000.00616.79
7.4.300.0060.00016.70
7.4.290.0070.00316.68
7.4.280.0060.00316.72
7.4.270.0030.00316.64
7.4.260.0000.00716.65
7.4.250.0070.00016.65
7.4.240.0000.00716.73
7.4.230.0000.00716.51
7.4.220.0130.01316.83
7.4.210.0060.00916.70
7.4.200.0040.00416.84
7.4.160.0040.01116.71
7.4.150.0110.00717.40
7.4.140.0150.00617.86
7.4.130.0090.01016.78
7.4.120.0030.01316.77
7.4.110.0130.00316.60
7.4.100.0070.01316.50
7.4.90.0150.00316.61
7.4.80.0090.01219.39
7.4.70.0080.00816.82
7.4.60.0100.00716.71
7.4.50.0060.00516.70
7.4.40.0080.01016.80
7.4.30.0070.01016.73
7.4.00.0080.00715.24
7.3.330.0050.00013.31
7.3.320.0000.00513.50
7.3.310.0000.00716.57
7.3.300.0060.00016.52
7.3.290.0050.01016.43
7.3.280.0070.01116.47
7.3.270.0110.00717.40
7.3.260.0100.00816.74
7.3.250.0100.00916.64
7.3.240.0080.00816.74
7.3.230.0080.00916.50
7.3.210.0000.01816.51
7.3.200.0240.00916.71
7.3.190.0120.00916.49
7.3.180.0140.00616.73
7.3.170.0060.00916.43
7.3.160.0110.00516.66
7.3.120.0060.00914.68
7.3.110.0100.01015.20
7.3.100.0100.01014.53
7.3.90.0030.01615.21
7.3.80.0090.00615.18
7.3.70.0100.00315.04
7.3.60.0130.00015.12
7.3.50.0100.00614.79
7.3.40.0130.00014.95
7.3.30.0070.01114.59
7.3.20.0090.00316.95
7.3.10.0040.01116.64
7.3.00.0090.00617.04
7.2.330.0110.00716.81
7.2.320.0130.00316.66
7.2.310.0090.00916.67
7.2.300.0100.01316.78
7.2.290.0130.00516.73
7.2.250.0070.01515.29
7.2.240.0070.01115.52
7.2.230.0120.00414.89
7.2.220.0060.01215.11
7.2.210.0070.00714.97
7.2.200.0030.01015.20
7.2.190.0060.00315.18
7.2.180.0060.01015.12
7.2.170.0060.00315.27
7.2.60.0090.00317.13
7.2.00.0000.00919.65
7.1.330.0070.00616.03
7.1.320.0040.00815.90
7.1.310.0100.00315.89
7.1.300.0070.00715.94
7.1.290.0060.00915.97
7.1.280.0040.01115.93
7.1.270.0040.01116.04
7.1.260.0130.00315.98
7.1.200.0080.00815.79
7.1.70.0070.01017.36
7.1.60.0000.01119.87
7.1.00.0030.07322.41
7.0.200.0410.00714.63
7.0.80.0100.04319.89
7.0.70.0100.04319.93
7.0.60.0200.07319.98
7.0.50.0170.08020.25
7.0.40.0100.06720.04
7.0.30.0070.08020.08
7.0.20.0030.08320.05
7.0.10.0100.07720.14
7.0.00.0100.07720.18
5.6.280.0030.07320.78
5.6.230.0030.07020.69
5.6.220.0200.07020.63
5.6.210.0100.08020.75
5.6.200.0000.06021.09
5.6.190.0070.05720.94
5.6.180.0130.07020.96
5.6.170.0070.08020.95
5.6.160.0030.08721.11
5.6.150.0070.08720.95
5.6.140.0030.07320.95
5.6.130.0100.08020.92
5.6.120.0100.08321.02
5.6.110.0130.06321.00
5.6.100.0070.07021.04
5.6.90.0000.08721.15
5.6.80.0070.04020.55
5.6.70.0070.06320.46
5.6.60.0070.06320.48
5.6.50.0030.09020.49
5.6.40.0070.08020.40
5.6.30.0130.07720.46
5.6.20.0170.06720.52
5.6.10.0170.07720.36
5.6.00.0070.07720.45
5.5.370.0030.07320.38
5.5.360.0030.09020.36
5.5.350.0100.06020.46
5.5.340.0130.07720.74
5.5.330.0070.07320.84
5.5.320.0000.05320.84
5.5.310.0130.06720.90
5.5.300.0030.04320.75
5.5.290.0100.05020.80
5.5.280.0100.07320.88
5.5.270.0100.07020.77
5.5.260.0030.08720.88
5.5.250.0130.07720.62
5.5.240.0130.04720.19
5.5.230.0070.07720.26
5.5.220.0130.07720.29
5.5.210.0070.07720.03
5.5.200.0130.07320.25
5.5.190.0170.07020.25
5.5.180.0070.07720.14
5.5.160.0100.07720.27
5.5.150.0100.07320.23
5.5.140.0170.06720.15
5.5.130.0170.07020.25
5.5.120.0100.07720.17
5.5.110.0100.07320.10
5.5.100.0100.08020.16
5.5.90.0130.06020.07
5.5.80.0200.07320.16
5.5.70.0030.08320.14
5.5.60.0170.06020.09
5.5.50.0030.07020.14
5.5.40.0300.05720.14
5.5.30.0100.04720.15
5.5.20.0200.06720.04
5.5.10.0070.07720.13
5.5.00.0030.07720.17
5.4.450.0030.08719.51
5.4.440.0100.07319.37
5.4.430.0070.07319.23
5.4.420.0170.07319.20
5.4.410.0030.06019.32
5.4.400.0070.07719.13
5.4.390.0130.07719.18
5.4.380.0070.07719.13
5.4.370.0030.06019.04
5.4.360.0000.07719.21
5.4.350.0100.07719.05
5.4.340.0270.06318.94
5.4.320.0070.05719.18
5.4.310.0170.05718.95
5.4.300.0100.05319.02
5.4.290.0130.07019.14
5.4.280.0100.07719.15
5.4.270.0130.06719.13
5.4.260.0070.07319.02
5.4.250.0130.06719.02
5.4.240.0130.07319.15
5.4.230.0000.08318.90
5.4.220.0000.07719.18
5.4.210.0200.06019.20
5.4.200.0170.07018.95
5.4.190.0070.07018.89
5.4.180.0030.08019.11
5.4.170.0070.07719.04
5.4.160.0070.08318.82
5.4.150.0070.07319.03
5.4.140.0070.08016.39
5.4.130.0100.07016.41
5.4.120.0100.06716.33
5.4.110.0100.06716.47
5.4.100.0070.04316.32
5.4.90.0100.07716.51
5.4.80.0100.06316.36
5.4.70.0100.07316.41
5.4.60.0070.07316.46
5.4.50.0030.07716.41
5.4.40.0170.06016.30
5.4.30.0070.07716.43
5.4.20.0070.07316.47
5.4.10.0030.07016.40
5.4.00.0070.07715.94
5.3.290.0070.07714.71
5.3.280.0100.07014.73
5.3.270.0070.08014.60
5.3.260.0070.05714.58
5.3.250.0070.07314.70
5.3.240.0070.08014.71
5.3.230.0030.08014.52
5.3.220.0030.08014.51
5.3.210.0070.06714.61
5.3.200.0130.05714.54
5.3.190.0070.07014.70
5.3.180.0030.07714.53
5.3.170.0070.07714.58
5.3.160.0070.07314.70
5.3.150.0100.07314.56
5.3.140.0130.07314.54
5.3.130.0000.08314.57
5.3.120.0030.07714.47
5.3.110.0030.05014.48
5.3.100.0130.07014.10
5.3.90.0030.05013.94
5.3.80.0070.04313.92
5.3.70.0000.06314.08
5.3.60.0170.06014.14
5.3.50.0100.06313.84
5.3.40.0030.07313.92
5.3.30.0100.06013.96
5.3.20.0030.07013.71
5.3.10.0070.05713.73
5.3.00.0070.07313.70
5.2.170.0000.07011.63
5.2.160.0030.04311.63
5.2.150.0030.05011.63
5.2.140.0030.03711.63
5.2.130.0100.05311.63
5.2.120.0100.06011.63
5.2.110.0030.06711.63
5.2.100.0130.05311.63
5.2.90.0230.04711.63
5.2.80.0070.06311.63
5.2.70.0030.06311.63
5.2.60.0030.05711.63
5.2.50.0030.06311.63
5.2.40.0030.06311.63
5.2.30.0000.07011.63
5.2.20.0100.06011.63
5.2.10.0070.06011.63
5.2.00.0100.04711.63
5.1.60.0030.05311.63
5.1.50.0100.05011.63
5.1.40.0100.04711.63
5.1.30.0070.05311.63
5.1.20.0070.05711.63
5.1.10.0030.02711.63
5.1.00.0070.03711.63
5.0.50.0030.03311.63
5.0.40.0000.02311.63
5.0.30.0000.03011.63
5.0.20.0030.02011.63
5.0.10.0030.02011.63
5.0.00.0030.03011.63
4.4.90.0000.03711.63
4.4.80.0070.03311.63
4.4.70.0030.03711.63
4.4.60.0030.03311.63
4.4.50.0000.04011.63
4.4.40.0070.05011.63
4.4.30.0070.03011.63
4.4.20.0000.03311.63
4.4.10.0000.04011.63
4.4.00.0030.02711.63
4.3.110.0070.02311.63
4.3.100.0000.01711.63
4.3.90.0030.01311.63
4.3.80.0000.02311.63
4.3.70.0000.02011.63
4.3.60.0030.02311.63
4.3.50.0000.02011.63
4.3.40.0000.02711.63
4.3.30.0000.01711.63
4.3.20.0000.01711.63
4.3.10.0000.01711.63
4.3.00.0070.01011.63

preferences:
19.54 ms | 401 KiB | 5 Q