3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = 'What will happen to the #globe if there is more #sunlight more #moonlight but less overall #light. Ah! Funny little #joke. Goodbye fellas!!! #Morning Jokes #For No one.'; $GLOBALS['_loops'] = 0; $callback = function($match) { return ++$GLOBALS['_loops'] <= 3 ? $match[0] : ' '; }; echo "BEFORE : ", $message, "\n"; echo "AFTER : ", preg_replace_callback('~\h*#[a-z]+\h*~i', $callback, $message), "\n"; echo "LOOPS : ", $GLOBALS['_loops'], "\n";

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.0040.01118.56
8.3.50.0090.00921.21
8.3.40.0120.00318.88
8.3.30.0070.00720.09
8.3.20.0080.00018.82
8.3.10.0080.00020.96
8.3.00.0080.00023.48
8.2.180.0090.00616.50
8.2.170.0110.00422.96
8.2.160.0070.00720.35
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0180.00019.83
8.2.110.0090.00022.36
8.2.100.0080.00418.00
8.2.90.0080.00019.34
8.2.80.0070.00019.46
8.2.70.0000.00818.00
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0000.00818.16
8.2.30.0040.00419.57
8.2.20.0070.00018.00
8.2.10.0000.00717.79
8.2.00.0040.00417.81
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0100.00022.60
8.1.230.0070.00420.88
8.1.220.0000.00818.77
8.1.210.0070.00418.88
8.1.200.0040.00417.48
8.1.190.0060.00317.63
8.1.180.0040.00418.10
8.1.170.0050.00318.76
8.1.160.0050.00218.84
8.1.150.0080.00018.81
8.1.140.0070.00017.66
8.1.130.0030.00317.92
8.1.120.0070.00017.57
8.1.110.0060.00317.45
8.1.100.0000.00817.57
8.1.90.0040.00417.53
8.1.80.0000.00817.65
8.1.70.0070.00017.51
8.1.60.0080.00017.77
8.1.50.0080.00017.60
8.1.40.0040.00417.60
8.1.30.0000.00717.86
8.1.20.0000.00817.77
8.1.10.0060.00317.63
8.1.00.0120.00017.56
8.0.300.0060.00319.90
8.0.290.0040.00417.18
8.0.280.0050.00318.46
8.0.270.0000.00717.28
8.0.260.0030.00317.01
8.0.250.0020.00517.11
8.0.240.0060.00317.03
8.0.230.0030.00316.99
8.0.220.0030.00317.08
8.0.210.0000.00717.05
8.0.200.0030.00317.08
8.0.190.0000.00717.13
8.0.180.0040.00416.99
8.0.170.0030.00516.90
8.0.160.0040.00416.93
8.0.150.0040.00417.05
8.0.140.0040.00417.00
8.0.130.0000.00513.48
8.0.120.0040.00417.00
8.0.110.0000.00717.07
8.0.100.0070.00017.12
8.0.90.0000.00816.98
8.0.80.0120.00617.01
8.0.70.0000.00817.03
8.0.60.0000.00816.85
8.0.50.0040.00416.94
8.0.30.0050.01517.34
8.0.20.0110.00717.40
8.0.10.0040.00417.14
8.0.00.0100.01116.82
7.4.330.0000.00516.79
7.4.320.0000.00616.79
7.4.300.0000.00716.70
7.4.290.0070.00016.85
7.4.280.0030.00616.65
7.4.270.0000.00716.64
7.4.260.0000.00513.51
7.4.250.0040.00416.77
7.4.240.0000.00716.65
7.4.230.0050.00216.88
7.4.220.0120.00616.62
7.4.210.0080.00916.78
7.4.200.0040.00416.54
7.4.190.0070.00016.81
7.4.160.0100.00516.47
7.4.150.0140.00717.40
7.4.140.0110.00617.86
7.4.130.0080.00816.71
7.4.120.0100.00716.57
7.4.110.0060.01316.86
7.4.100.0080.00816.61
7.4.90.0110.00716.58
7.4.80.0160.00619.39
7.4.70.0130.01016.63
7.4.60.0080.00816.80
7.4.50.0060.00316.87
7.4.40.0070.00722.77
7.4.30.0150.00616.80
7.4.00.0040.01415.30
7.3.330.0050.00013.44
7.3.320.0060.00013.48
7.3.310.0030.00316.56
7.3.300.0060.00016.33
7.3.290.0050.01016.50
7.3.280.0080.00816.52
7.3.270.0040.01417.40
7.3.260.0120.00718.24
7.3.250.0150.00716.68
7.3.240.0040.01316.87
7.3.230.0120.00616.84
7.3.210.0120.00816.73
7.3.200.0040.01316.53
7.3.190.0060.01516.61
7.3.180.0040.01116.85
7.3.170.0110.00616.51
7.3.160.0070.01016.77
7.3.120.0100.00615.04
7.3.110.0060.00914.83
7.3.100.0030.00814.87
7.3.90.0040.00814.82
7.3.80.0070.01014.95
7.3.70.0030.00714.89
7.3.60.0030.01415.06
7.3.50.0070.00714.90
7.3.40.0070.01014.89
7.3.30.0070.01015.10
7.3.20.0000.01116.96
7.3.10.0000.01316.85
7.3.00.0080.00816.79
7.2.330.0140.00316.80
7.2.320.0080.00816.88
7.2.310.0110.00616.82
7.2.300.0080.00816.77
7.2.290.0060.01017.03
7.2.240.0040.01215.50
7.2.230.0120.00315.06
7.2.220.0070.00715.02
7.2.210.0030.01215.30
7.2.200.0070.01015.23
7.2.190.0070.00715.11
7.2.180.0060.00615.22
7.2.170.0000.01515.30
7.2.160.0070.01015.21
7.2.150.0080.00817.16
7.2.140.0070.01117.33
7.2.130.0070.01017.18
7.2.120.0120.00017.34
7.2.110.0090.00617.11
7.2.100.0070.00716.90
7.2.90.0040.01117.20
7.2.80.0070.00317.21
7.2.70.0070.00717.18
7.2.60.0040.01116.93
7.2.50.0070.01016.99
7.2.40.0000.01016.99
7.2.30.0070.01017.23
7.2.20.0080.00816.88
7.2.10.0040.00817.15
7.2.00.0050.01118.56
7.1.330.0030.01016.14
7.1.320.0130.00015.91
7.1.310.0070.01016.05
7.1.300.0060.00615.87
7.1.290.0030.01415.95
7.1.280.0070.00416.05
7.1.270.0030.00715.99
7.1.260.0030.00715.75
7.1.250.0060.01216.12
7.1.100.0080.00817.96
7.1.70.0080.00017.29
7.1.60.0030.01019.24
7.1.50.0100.01316.89
7.1.00.0030.06022.47
7.0.200.0040.00816.98
7.0.140.0030.07322.13
7.0.100.0070.05320.02
7.0.90.0170.08019.95
7.0.80.0300.06720.09
7.0.70.0000.05319.84
7.0.60.0230.07719.82
7.0.50.0130.08020.38
7.0.40.0030.07020.01
7.0.30.0170.03020.08
7.0.20.0000.05020.14
7.0.10.0070.06719.95
7.0.00.0070.06320.07
5.6.280.0070.07021.02
5.6.250.0070.08320.64
5.6.240.0100.04320.46
5.6.230.0130.06020.61
5.6.220.0030.08320.58
5.6.210.0000.07720.50
5.6.200.0100.04021.12
5.6.190.0100.07721.10
5.6.180.0130.07321.00
5.6.170.0070.08321.14
5.6.160.0070.05021.08
5.6.150.0030.04021.17
5.6.140.0170.07021.04
5.6.130.0100.04721.16
5.6.120.0100.08020.96
5.6.110.0100.07021.01
5.6.100.0100.05321.09
5.6.90.0070.05021.09
5.6.80.0030.04020.46
5.6.70.0000.04320.41
5.6.60.0030.04020.47
5.6.50.0030.03720.47
5.6.40.0070.04020.47
5.6.30.0000.04320.37
5.6.20.0000.04320.31
5.6.10.0070.03720.46
5.6.00.0000.04320.39
5.5.380.0130.06320.30
5.5.370.0130.06720.33
5.5.360.0070.07720.29
5.5.350.0200.06320.34
5.5.340.0100.05720.77
5.5.330.0030.05320.91
5.5.320.0100.07720.92
5.5.310.0130.07720.87
5.5.300.0000.06320.65
5.5.290.0100.07720.91
5.5.280.0070.08020.90
5.5.270.0070.08320.76
5.5.260.0200.04020.88
5.5.250.0100.04320.58
5.5.240.0070.05320.16
5.5.230.0070.03720.14
5.5.220.0000.04320.21
5.5.210.0000.04320.21
5.5.200.0030.04320.24
5.5.190.0000.04320.27
5.5.180.0000.04020.15
5.5.160.0070.03720.24
5.5.150.0030.04020.15
5.5.140.0100.03020.00
5.5.130.0030.04020.28
5.5.120.0100.03020.18
5.5.110.0070.05020.27
5.5.100.0030.03720.08
5.5.90.0030.03720.12
5.5.80.0000.04020.08
5.5.70.0070.03320.14
5.5.60.0000.04020.08
5.5.50.0030.04019.96
5.5.40.0070.03719.96
5.5.30.0070.05320.06
5.5.20.0070.03720.05
5.5.10.0030.04020.09
5.5.00.0000.04720.04
5.4.450.0130.09019.37
5.4.440.0130.07019.27
5.4.430.0170.07319.53
5.4.420.0000.04319.44
5.4.410.0030.04019.14
5.4.400.0000.04019.04
5.4.390.0070.03718.85
5.4.380.0000.04019.05
5.4.370.0030.03718.95
5.4.360.0030.04019.06
5.4.350.0030.03718.94
5.4.340.0100.03319.04
5.4.320.0070.03319.11
5.4.310.0030.04719.12
5.4.300.0030.03719.21
5.4.290.0030.04718.92
5.4.280.0000.03718.85
5.4.270.0030.08019.09
5.4.260.0000.04019.18
5.4.250.0070.03018.86
5.4.240.0030.04019.20
5.4.230.0030.03719.04
5.4.220.0100.06319.20
5.4.210.0030.04019.22
5.4.200.0030.03719.02
5.4.190.0030.03719.08
5.4.180.0000.04019.13
5.4.170.0030.06019.17
5.4.160.0070.03718.83
5.4.150.0000.04018.96
5.4.140.0030.03716.43
5.4.130.0000.03316.45
5.4.120.0070.03016.45
5.4.110.0030.04016.47
5.4.100.0000.04016.43
5.4.90.0030.06016.47
5.4.80.0130.06716.45
5.4.70.0130.06316.41
5.4.60.0070.07316.24
5.4.50.0030.07716.31
5.4.40.0030.07316.36
5.4.30.0170.06716.24
5.4.20.0000.05316.45
5.4.10.0100.06316.48
5.4.00.0070.04315.77
5.3.290.0100.03314.71
5.3.280.0130.02314.59
5.3.270.0000.04014.74
5.3.260.0030.03714.54
5.3.250.0000.04014.64
5.3.240.0030.03714.74
5.3.230.0000.05714.59
5.3.220.0000.04714.70
5.3.210.0030.04314.58
5.3.200.0030.03714.66
5.3.190.0030.08014.63
5.3.180.0100.07314.55
5.3.170.0100.07314.52
5.3.160.0000.07014.51
5.3.150.0070.04014.58
5.3.140.0100.07714.61
5.3.130.0070.07714.69
5.3.120.0030.07714.58
5.3.110.0070.03714.55
5.3.100.0030.04014.16
5.3.90.0000.08314.15
5.3.80.0030.06014.04
5.3.70.0170.06313.92
5.3.60.0130.05013.93
5.3.50.0030.06314.00
5.3.40.0070.07313.96
5.3.30.0100.06713.90
5.3.20.0070.06013.72
5.3.10.0000.07713.74
5.3.00.0070.07013.69
5.2.170.0000.06711.57
5.2.160.0070.04711.57
5.2.150.0030.06011.57
5.2.140.0000.06711.57
5.2.130.0070.06011.57
5.2.120.0030.06011.57
5.2.110.0070.05711.57
5.2.100.0170.05011.57
5.2.90.0070.04711.57
5.2.80.0030.06011.57
5.2.70.0100.06011.57
5.2.60.0030.05011.57
5.2.50.0070.05711.57
5.2.40.0130.05311.57
5.2.30.0100.06011.57
5.2.20.0130.05311.57
5.2.10.0130.03311.57
5.2.00.0070.03311.57
5.1.60.0070.05311.57
5.1.50.0000.04711.57
5.1.40.0030.04011.57
5.1.30.0070.05311.57
5.1.20.0000.04711.57
5.1.10.0070.03011.57
5.1.00.0070.02711.57
5.0.50.0000.02311.57
5.0.40.0030.04311.57
5.0.30.0000.07011.57
5.0.20.0000.04711.57
5.0.10.0100.03711.57
5.0.00.0000.03711.57
4.4.90.0000.03711.57
4.4.80.0030.01711.57
4.4.70.0030.01711.57
4.4.60.0000.03711.57
4.4.50.0070.02711.57
4.4.40.0030.02711.57
4.4.30.0030.03311.57
4.4.20.0000.04711.57
4.4.10.0030.01711.57
4.4.00.0000.05711.57
4.3.110.0000.03711.57
4.3.100.0030.03011.57
4.3.90.0000.03711.57
4.3.80.0070.03711.57
4.3.70.0030.02711.57
4.3.60.0000.01711.57
4.3.50.0070.02711.57
4.3.40.0000.06011.57
4.3.30.0000.02011.57
4.3.20.0000.03311.57
4.3.10.0000.03311.57
4.3.00.0000.03311.57

preferences:
45.41 ms | 400 KiB | 5 Q