3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line="This is the first test [paragraph]{@font-face:Garamond}"; $line=preg_replace_callback('/\[([\w\s]*)\]{([\w\s\\@:=\'"-\.;^}]*)}/', function($match){ /*$inline=new Element('span'); $inline->html($match[1]); $this->_applyDeclaration($inline,$match[2]);*/ return 'foo'; }, $line); echo $line;

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.0150.00718.56
8.3.60.0110.00418.51
8.3.50.0070.01322.13
8.3.40.0160.00319.09
8.3.30.0030.01019.07
8.3.20.0070.00020.19
8.3.10.0040.00421.90
8.3.00.0000.00819.38
8.2.180.0070.00718.41
8.2.170.0070.01122.96
8.2.160.0070.00722.38
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0040.00419.52
8.2.110.0030.00619.33
8.2.100.0050.00519.21
8.2.90.0050.00317.88
8.2.80.0100.00017.97
8.2.70.0000.00917.93
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0080.00020.61
8.2.30.0050.00218.07
8.2.20.0000.00817.90
8.2.10.0000.00818.07
8.2.00.0040.00417.90
8.1.280.0110.00425.92
8.1.270.0040.00418.96
8.1.260.0100.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00322.48
8.1.230.0000.01119.09
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.01117.35
8.1.190.0050.00317.48
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0040.00722.04
8.1.150.0070.00018.84
8.1.140.0020.00517.61
8.1.130.0000.00717.86
8.1.120.0020.00517.52
8.1.110.0040.00417.64
8.1.100.0000.00717.59
8.1.90.0040.00417.58
8.1.80.0070.00017.63
8.1.70.0000.00717.52
8.1.60.0030.00617.76
8.1.50.0000.00917.58
8.1.40.0000.00717.70
8.1.30.0000.00817.75
8.1.20.0080.00017.80
8.1.10.0030.00517.59
8.1.00.0030.00517.60
8.0.300.0040.00419.77
8.0.290.0040.00416.88
8.0.280.0070.00018.53
8.0.270.0050.00217.23
8.0.260.0000.00617.27
8.0.250.0050.00317.16
8.0.240.0030.00517.05
8.0.230.0070.00017.00
8.0.220.0000.00717.00
8.0.210.0030.00516.98
8.0.200.0060.00017.07
8.0.190.0040.00417.03
8.0.180.0040.00416.95
8.0.170.0030.00617.04
8.0.160.0040.00417.11
8.0.150.0020.00517.08
8.0.140.0070.00016.98
8.0.130.0000.00613.51
8.0.120.0000.00816.88
8.0.110.0000.00717.08
8.0.100.0050.00317.01
8.0.90.0040.00417.09
8.0.80.0080.00817.07
8.0.70.0000.00717.04
8.0.60.0050.00216.93
8.0.50.0000.00716.81
8.0.30.0120.00717.13
8.0.20.0160.00417.48
8.0.10.0000.00717.20
8.0.00.0160.00516.95
7.4.330.0050.00015.08
7.4.320.0060.00016.70
7.4.300.0000.00616.80
7.4.290.0040.00416.63
7.4.280.0060.00316.78
7.4.270.0020.00516.73
7.4.260.0030.00316.69
7.4.250.0070.00016.77
7.4.240.0000.00716.72
7.4.230.0040.00416.59
7.4.220.0100.00716.91
7.4.210.0110.00316.73
7.4.200.0070.00016.61
7.4.160.0040.01116.92
7.4.150.0240.00017.40
7.4.140.0120.00917.86
7.4.130.0110.00516.82
7.4.120.0090.00816.71
7.4.110.0160.00316.39
7.4.100.0110.00716.63
7.4.90.0090.00916.77
7.4.80.0100.01019.39
7.4.70.0090.00616.67
7.4.60.0080.00816.70
7.4.50.0040.00416.72
7.4.40.0030.01316.63
7.4.30.0130.00316.70
7.4.00.0060.00315.14
7.3.330.0000.00613.23
7.3.320.0060.00613.47
7.3.310.0000.00716.50
7.3.300.0000.00816.37
7.3.290.0050.01016.46
7.3.280.0060.01016.45
7.3.270.0090.00917.40
7.3.260.0070.01016.59
7.3.250.0050.01716.46
7.3.240.0090.01216.46
7.3.230.0160.00316.51
7.3.210.0090.00916.51
7.3.200.0210.00019.39
7.3.190.0100.00716.80
7.3.180.0120.00316.44
7.3.170.0040.01316.75
7.3.160.0100.01016.83
7.3.10.0040.01016.59
7.3.00.0060.00916.52
7.2.330.0030.01616.77
7.2.320.0070.01316.69
7.2.310.0100.00716.85
7.2.300.0110.00616.77
7.2.290.0140.00816.66
7.2.130.0110.00716.80
7.2.120.0030.00916.88
7.2.110.0000.01416.93
7.2.100.0120.00616.85
7.2.90.0160.00817.12
7.2.80.0120.00916.87
7.2.70.0070.01416.98
7.2.60.0090.00616.93
7.2.50.0070.01416.86
7.2.40.0140.00816.80
7.2.30.0150.00816.96
7.2.20.0130.00716.86
7.2.10.0080.01216.95
7.2.00.0140.01018.32
7.1.250.0060.00315.93
7.1.200.0090.00616.10
7.1.100.0110.00318.46
7.1.70.0030.00617.29
7.1.60.0100.01319.50
7.1.50.0030.01717.16
7.1.00.0030.07322.42
7.0.200.0040.00815.07
7.0.140.0000.04322.12
7.0.60.0200.07319.84
7.0.50.0100.03717.90
7.0.40.0100.08719.99
7.0.30.0230.05720.25
7.0.20.0200.03720.09
7.0.10.0030.04320.09
7.0.00.0030.05320.22
5.6.280.0000.07721.07
5.6.210.0070.09020.72
5.6.200.0070.08718.12
5.6.190.0000.07720.55
5.6.180.3470.03720.67
5.6.170.0200.07020.47
5.6.160.0100.06320.39
5.6.150.0030.04718.29
5.6.140.0070.08018.15
5.6.130.0030.04318.21
5.6.120.0030.04020.99
5.6.110.0070.04020.96
5.6.100.0030.06720.97
5.6.90.0070.04020.97
5.6.80.0030.08320.34
5.6.70.4530.03320.35
5.5.350.0100.06020.32
5.5.340.0170.06717.94
5.5.330.0100.08720.31
5.5.320.0230.06720.20
5.5.310.0330.07320.29
5.5.300.0100.07018.04
5.5.290.0130.03318.09
5.5.280.0200.07020.96
5.5.270.0030.06020.85
5.5.260.0100.07320.86
5.5.250.0070.07020.80
5.5.240.0270.07320.36
5.4.450.0770.06319.47
5.4.440.0970.06719.45
5.4.430.0230.04319.47
5.4.420.0700.06019.47
5.4.410.1030.06719.47
5.4.400.0200.05718.79
5.4.390.0270.05018.84
5.4.380.0300.05018.59
5.4.370.0230.07018.52
5.4.360.0270.06018.77
5.4.350.0230.07318.69
5.4.340.0230.06718.84
5.4.320.0300.06318.75
5.4.310.1000.06718.72
5.4.300.0230.05018.85
5.4.290.0200.05318.80
5.4.280.1070.05318.58
5.4.270.0230.04718.77
5.4.260.1030.05318.82
5.4.250.0170.05718.74
5.4.240.0370.05718.62
5.4.230.0370.07018.77
5.4.220.1030.05718.51
5.4.210.1070.05018.82
5.4.200.0130.05316.59
5.4.190.0200.05318.76
5.4.180.0270.04718.70
5.4.170.1330.05318.82
5.4.160.0200.05018.60
5.4.150.0200.05318.71
5.4.140.0100.07016.30
5.4.130.1270.04716.20
5.4.120.0270.06316.41
5.4.110.0430.04316.25
5.4.100.1900.06316.25
5.4.90.0200.05716.32
5.4.80.0200.05316.41
5.4.70.0300.05716.21
5.4.60.0130.05016.25
5.4.50.0130.05316.14
5.4.40.0270.05016.26
5.4.30.0200.05316.39
5.4.20.0270.04716.29
5.4.10.0270.04016.39
5.4.00.0230.05015.87
5.3.290.0170.05314.82
5.3.280.0170.05714.60
5.3.270.1230.06014.70
5.3.260.0300.06314.88
5.3.250.0330.05714.88
5.3.240.0270.04714.64
5.3.230.0100.06014.63
5.3.220.0170.05314.75
5.3.210.0130.06014.84
5.3.200.0970.06314.67
5.3.190.0200.05714.77
5.3.180.0200.05314.84
5.3.170.0130.05714.68
5.3.160.0170.05014.65
5.3.150.1000.04714.58
5.3.140.0330.06714.57
5.3.130.0270.06014.63
5.3.120.0200.07314.63
5.3.110.1100.06314.58
5.3.100.0770.04714.05
5.3.90.1000.0376.73
5.3.80.0370.04714.05
5.3.70.0170.06314.12
5.3.60.0330.06014.04
5.3.50.0200.06014.23
5.3.40.0400.05314.08
5.3.30.0230.05714.18
5.3.20.0230.06313.79
5.3.10.0300.06713.79
5.3.00.0330.06713.77
5.2.170.0200.06011.07
5.2.160.0130.05011.07
5.2.150.0200.05311.11
5.2.140.0230.04711.17
5.2.130.0170.04311.08
5.2.120.0230.04011.13
5.2.110.0200.05711.14
5.2.100.0170.05011.07
5.2.90.0230.04011.02
5.2.80.0170.04711.15
5.2.70.0170.05311.26
5.2.60.0200.04011.00
5.2.50.0870.04011.01
5.2.40.0000.05310.96
5.2.30.0130.05711.11
5.2.20.0100.05310.95
5.2.10.0130.04710.83
5.2.00.0100.04310.66
5.1.60.0070.04010.04
5.1.50.0200.03010.08
5.1.40.0200.0339.96
5.1.30.0130.05310.38
5.1.20.0170.04010.40
5.1.10.0070.04710.12
5.1.00.0130.03710.06
5.0.50.0070.0308.56
5.0.40.0070.0308.39
5.0.30.1600.0438.23
5.0.20.0070.0308.32
5.0.10.0070.0408.29
5.0.00.0070.0608.33
4.4.90.0030.0235.83
4.4.80.0030.0235.82
4.4.70.0070.0235.88
4.4.60.0000.0375.81
4.4.50.0030.0335.90
4.4.40.0100.0335.89
4.4.30.0170.0175.88
4.4.20.0170.0135.96
4.4.10.0070.0205.96
4.4.00.0070.0335.95
4.3.110.0170.0205.81
4.3.100.0100.0235.81
4.3.90.0100.0275.78
4.3.80.0070.0335.76
4.3.70.0100.0205.85
4.3.60.0200.0175.79
4.3.50.0030.0275.81
4.3.40.0070.0475.73
4.3.30.0070.0204.58
4.3.20.0100.0234.58
4.3.10.0070.0204.48
4.3.00.0070.0236.74

preferences:
115.18 ms | 401 KiB | 5 Q