3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '/^javascript:|css:/' . "\n"; $b = '| You have {{ messages }} messages!]'; print_r(preg_match($a, $b));

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.0150.00316.50
8.3.50.0080.01422.02
8.3.40.0070.01418.79
8.3.30.0100.00719.09
8.3.20.0050.00220.25
8.3.10.0000.00721.61
8.3.00.0080.00019.39
8.2.180.0120.00618.75
8.2.170.0100.01022.96
8.2.160.0040.01122.25
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00819.53
8.2.110.0040.00721.23
8.2.100.0110.00017.84
8.2.90.0000.00819.23
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0060.00618.04
8.2.50.0040.00418.07
8.2.40.0030.00718.03
8.2.30.0070.00017.90
8.2.20.0000.00817.68
8.2.10.0040.00417.89
8.2.00.0030.00617.63
8.1.280.0000.01425.92
8.1.270.0060.00318.83
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0110.00021.20
8.1.230.0060.00617.58
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0050.00218.10
8.1.170.0030.00620.41
8.1.160.0000.00821.89
8.1.150.0070.00018.80
8.1.140.0040.00417.58
8.1.130.0030.00517.80
8.1.120.0040.00417.60
8.1.110.0040.00417.59
8.1.100.0000.00717.43
8.1.90.0030.00317.52
8.1.80.0040.00417.44
8.1.70.0080.00017.44
8.1.60.0000.00917.66
8.1.50.0040.00417.65
8.1.40.0000.00817.62
8.1.30.0000.00817.58
8.1.20.0040.00417.64
8.1.10.0000.00817.42
8.1.00.0060.00317.51
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0020.00518.38
8.0.270.0030.00317.12
8.0.260.0000.00717.21
8.0.250.0000.00716.91
8.0.240.0000.00717.01
8.0.230.0030.00316.93
8.0.220.0030.00316.98
8.0.210.0000.00816.87
8.0.200.0030.00317.04
8.0.190.0000.00816.96
8.0.180.0000.00716.99
8.0.170.0000.00817.05
8.0.160.0000.00717.04
8.0.150.0030.00416.95
8.0.140.0000.00716.97
8.0.130.0000.00613.40
8.0.120.0040.00416.92
8.0.110.0070.00016.90
8.0.100.0050.00217.04
8.0.90.0040.00416.87
8.0.80.0070.01016.90
8.0.70.0000.00716.97
8.0.60.0040.00416.84
8.0.50.0000.00816.95
8.0.30.0130.01017.38
8.0.20.0240.01417.40
8.0.10.0040.00417.02
8.0.00.0080.01316.70
7.4.330.0000.00515.04
7.4.320.0030.00316.66
7.4.300.0060.00316.59
7.4.290.0000.00716.78
7.4.280.0030.00616.63
7.4.270.0000.00716.64
7.4.260.0070.00016.64
7.4.250.0070.00016.54
7.4.240.0040.00316.66
7.4.230.0050.00216.76
7.4.220.0090.00916.71
7.4.210.0120.00516.70
7.4.200.0070.00016.86
7.4.160.0080.00816.78
7.4.150.0060.01317.40
7.4.140.0130.00917.86
7.4.130.0080.00816.56
7.4.120.0120.00716.82
7.4.110.0170.00016.55
7.4.100.0130.00616.68
7.4.90.0140.00516.53
7.4.80.0120.00819.39
7.4.70.0070.01116.58
7.4.60.0030.01216.43
7.4.50.0000.00516.33
7.4.40.0140.00316.84
7.4.30.0100.01316.52
7.4.00.0080.01015.04
7.3.330.0000.00513.00
7.3.320.0080.00713.12
7.3.310.0000.00716.23
7.3.300.0030.00316.14
7.3.290.0000.00716.32
7.3.280.0100.01016.33
7.3.270.0140.01017.40
7.3.260.0090.00916.31
7.3.250.0140.00916.44
7.3.240.0110.00516.54
7.3.230.0120.00616.39
7.3.210.0090.00916.45
7.3.200.0100.00719.39
7.3.190.0150.00616.55
7.3.180.0120.00616.35
7.3.170.0120.01116.52
7.3.160.0060.00916.51
7.3.120.0070.01315.01
7.3.110.0150.00414.73
7.3.100.0130.00314.35
7.3.90.0100.00714.49
7.3.80.0040.01114.69
7.3.70.0100.00314.73
7.3.60.0000.01214.75
7.3.50.0120.00014.85
7.3.40.0100.00714.86
7.3.30.0030.00914.84
7.3.20.0090.00316.82
7.3.10.0020.01016.72
7.3.00.0030.01116.56
7.2.330.0200.00016.63
7.2.320.0070.01716.61
7.2.310.0050.01416.42
7.2.300.0110.00616.44
7.2.290.0150.00916.58
7.2.250.0150.00415.11
7.2.240.0070.01415.03
7.2.230.0120.00314.97
7.2.220.0030.01215.02
7.2.210.0130.00015.10
7.2.200.0000.00914.68
7.2.190.0030.01014.91
7.2.180.0030.00615.12
7.2.170.0040.00814.96
7.2.130.0070.00316.84
7.2.120.0090.00316.69
7.2.110.0040.01116.27
7.2.100.0000.01416.48
7.2.90.0080.00416.99
7.2.80.0100.00316.39
7.2.70.0040.00916.61
7.2.60.0160.00016.99
7.2.50.0030.01016.78
7.2.40.0030.00616.83
7.2.30.0060.00616.67
7.2.20.0000.00816.83
7.2.10.0030.01016.86
7.2.00.0030.01018.09
7.1.330.0130.00315.68
7.1.320.0110.00315.73
7.1.310.0040.01115.85
7.1.300.0040.00715.68
7.1.290.0030.01015.95
7.1.280.0080.00615.71
7.1.270.0030.00715.71
7.1.260.0070.00715.86
7.1.250.0000.00715.85
7.1.100.0030.00918.21
7.1.70.0030.01317.39
7.1.60.0030.01919.46
7.1.50.0070.01417.22
7.1.00.0000.08022.32
7.0.200.0000.00716.70
7.0.140.0000.06722.07
7.0.70.5000.04020.12
7.0.60.0030.07319.96
7.0.50.0000.04317.79
7.0.40.0030.05320.10
7.0.30.0270.05020.04
7.0.20.0230.04320.31
7.0.10.0330.04320.29
7.0.00.0070.08720.29
5.6.280.0030.07320.88
5.6.210.0030.04720.46
5.6.200.0100.08318.22
5.6.190.0030.06720.48
5.6.180.0270.06320.30
5.6.170.0230.03720.54
5.6.160.0030.04020.48
5.6.150.0130.06718.14
5.6.140.0030.04018.16
5.6.130.0170.07018.12
5.6.120.0000.05020.97
5.6.110.0070.08321.11
5.6.100.0130.08020.98
5.6.90.0100.08020.84
5.6.80.0030.08320.35
5.6.70.0400.05720.39
5.5.350.0130.08020.43
5.5.340.0100.08017.97
5.5.330.0170.07020.27
5.5.320.0100.08020.29
5.5.310.0300.07320.28
5.5.300.0030.03717.90
5.5.290.0070.05017.93
5.5.280.0030.05720.87
5.5.270.0030.09320.79
5.5.260.0200.06720.86
5.5.250.0070.05320.57
5.5.240.0100.03320.34
5.4.450.0170.06019.45
5.4.440.0670.07319.63
5.4.430.0630.05319.32
5.4.420.0130.05719.54
5.4.410.0800.07319.16
5.4.400.0100.05718.75
5.4.390.0170.04718.61
5.4.380.0100.05718.61
5.4.370.0170.05018.46
5.4.360.0130.06018.77
5.4.350.0170.05318.78
5.4.340.0170.05018.46
5.4.320.0200.05018.67
5.4.310.0270.04718.52
5.4.300.0170.05018.77
5.4.290.0200.04718.73
5.4.280.0200.04718.58
5.4.270.0130.05318.68
5.4.260.0100.05718.67
5.4.250.0200.05018.68
5.4.240.0170.05318.67
5.4.230.0300.04018.47
5.4.220.0170.05318.45
5.4.210.0100.05718.76
5.4.200.0170.05016.48
5.4.190.0230.04318.68
5.4.180.0130.05318.55
5.4.170.0130.05718.48
5.4.160.0230.04718.44
5.4.150.0100.05718.46
5.4.140.0100.05316.17
5.4.130.0130.04716.11
5.4.120.0070.05316.08
5.4.110.0070.05316.19
5.4.100.0070.05716.25
5.4.90.0200.04716.21
5.4.80.0130.05016.13
5.4.70.0130.05016.05
5.4.60.0170.04716.05
5.4.50.0130.05016.05
5.4.40.0030.06016.05
5.4.30.0200.04316.22
5.4.20.0230.04716.02
5.4.10.0200.04316.11
5.4.00.0170.04715.59
5.3.290.0070.07014.65
5.3.280.0100.05714.50
5.3.270.0200.04714.75
5.3.260.0100.06014.69
5.3.250.0230.04714.56
5.3.240.0130.05314.58
5.3.230.0100.05714.75
5.3.220.0100.06714.63
5.3.210.0100.05714.55
5.3.200.0130.05014.63
5.3.190.0130.05714.55
5.3.180.0200.05314.52
5.3.170.0030.06014.63
5.3.160.0100.05014.62
5.3.150.0170.04714.46
5.3.140.0100.06314.50
5.3.130.0170.06014.61
5.3.120.0100.05714.52
5.3.110.0100.06014.61
5.3.100.0130.06014.01
5.3.90.0100.05714.08
5.3.80.0130.05013.93
5.3.70.0230.04013.92
5.3.60.0170.04714.10
5.3.50.0130.05013.94
5.3.40.0170.04713.91
5.3.30.0170.04313.89
5.3.20.0070.05313.66
5.3.10.0170.04313.57
5.3.00.0130.05013.66
5.2.170.0200.03711.20
5.2.160.0100.04011.18
5.2.150.0130.04011.17
5.2.140.0030.05011.30
5.2.130.0100.04311.03
5.2.120.0230.03311.09
5.2.110.0100.04311.04
5.2.100.0130.03711.14
5.2.90.0130.05011.01
5.2.80.0070.05011.04
5.2.70.0130.04311.07
5.2.60.0170.03710.96
5.2.50.0030.04711.04
5.2.40.0070.04010.95
5.2.30.0130.03710.95
5.2.20.0100.04010.95
5.2.10.0030.04710.89
5.2.00.0100.04710.82
5.1.60.0070.03710.16
5.1.50.0030.04010.01
5.1.40.0070.04010.09
5.1.30.0100.03710.32
5.1.20.0100.04010.36
5.1.10.0130.03310.10
5.1.00.0100.03310.16
5.0.50.0070.0308.57
5.0.40.0100.0238.44
5.0.30.0030.0438.39
5.0.20.0070.0278.27
5.0.10.0100.0238.18
5.0.00.0030.0478.36
4.4.90.0100.0175.93
4.4.80.0070.0205.82
4.4.70.0000.0305.89
4.4.60.0030.0235.89
4.4.50.0030.0235.90
4.4.40.0070.0335.89
4.4.30.0000.0275.91
4.4.20.0100.0235.93
4.4.10.0070.0205.91
4.4.00.0030.0335.84
4.3.110.0030.0235.83
4.3.100.0030.0235.83
4.3.90.0030.0235.87
4.3.80.0030.0375.89
4.3.70.0000.0235.79
4.3.60.0030.0205.86
4.3.50.0070.0205.77
4.3.40.0070.0305.74
4.3.30.0030.0234.56
4.3.20.0070.0274.52
4.3.10.0070.0174.48
4.3.00.0070.0206.92

preferences:
60.98 ms | 401 KiB | 5 Q