3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nl = PHP_EOL; $a = '/^javascript:|css:/' . $nl; $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.0030.01416.63
8.3.50.0160.00622.11
8.3.40.0100.00718.80
8.3.30.0090.00918.92
8.3.20.0070.00020.22
8.3.10.0000.00721.73
8.3.00.0000.00819.38
8.2.180.0140.00718.30
8.2.170.0130.00622.96
8.2.160.0100.00322.38
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00419.64
8.2.110.0050.00519.27
8.2.100.0090.00317.88
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0080.00417.77
8.2.50.0030.00618.07
8.2.40.0040.00519.83
8.2.30.0040.00418.17
8.2.20.0070.00017.82
8.2.10.0000.00818.13
8.2.00.0040.00417.89
8.1.280.0070.01125.92
8.1.270.0030.00620.49
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00323.97
8.1.230.0100.00017.42
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.01117.47
8.1.190.0050.00317.35
8.1.180.0060.00318.10
8.1.170.0030.00620.53
8.1.160.0040.00421.96
8.1.150.0050.00218.89
8.1.140.0000.00717.56
8.1.130.0040.00417.73
8.1.120.0050.00217.57
8.1.110.0040.00417.43
8.1.100.0040.00417.51
8.1.90.0070.00017.52
8.1.80.0000.00717.56
8.1.70.0030.00317.60
8.1.60.0030.00617.58
8.1.50.0040.00417.64
8.1.40.0040.00417.63
8.1.30.0000.00917.73
8.1.20.0000.00817.57
8.1.10.0080.00017.62
8.1.00.0040.00417.61
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0000.00717.27
8.0.260.0060.00017.14
8.0.250.0040.00416.98
8.0.240.0030.00317.07
8.0.230.0000.00717.10
8.0.220.0040.00417.07
8.0.210.0040.00416.90
8.0.200.0030.00317.08
8.0.190.0030.00317.07
8.0.180.0030.00516.90
8.0.170.0030.00517.09
8.0.160.0000.00717.08
8.0.150.0000.00717.07
8.0.140.0000.00717.01
8.0.130.0030.00313.45
8.0.120.0000.00817.00
8.0.110.0040.00417.02
8.0.100.0000.00716.93
8.0.90.0040.00417.08
8.0.80.0040.01216.85
8.0.70.0040.00416.81
8.0.60.0000.00717.00
8.0.50.0040.00416.92
8.0.30.0150.00917.16
8.0.20.0130.01217.40
8.0.10.0040.00417.13
8.0.00.0060.01116.98
7.4.330.0050.00015.11
7.4.320.0030.00316.69
7.4.300.0040.00416.53
7.4.290.0030.00316.67
7.4.280.0070.00016.62
7.4.270.0040.00416.65
7.4.260.0030.00316.63
7.4.250.0050.00316.69
7.4.240.0060.00116.61
7.4.230.0040.00416.52
7.4.220.0090.00916.61
7.4.210.0090.00816.75
7.4.200.0000.00716.64
7.4.160.0070.01416.55
7.4.150.0070.01117.40
7.4.140.0090.01117.86
7.4.130.0090.00716.73
7.4.120.0070.01116.63
7.4.110.0070.01716.44
7.4.100.0180.00016.66
7.4.90.0060.01216.50
7.4.80.0060.01019.39
7.4.70.0140.00316.65
7.4.60.0130.00316.83
7.4.50.0020.00216.35
7.4.40.0100.00616.57
7.4.30.0100.01316.68
7.4.00.0040.01415.17
7.3.330.0000.00713.04
7.3.320.0150.00013.17
7.3.310.0070.00016.19
7.3.300.0030.00316.36
7.3.290.0070.00016.20
7.3.280.0090.01016.34
7.3.270.0050.01417.40
7.3.260.0030.01316.37
7.3.250.0130.00516.67
7.3.240.0090.00916.32
7.3.230.0090.00916.39
7.3.210.0140.00316.64
7.3.200.0120.00919.39
7.3.190.0170.00616.75
7.3.180.0070.00716.51
7.3.170.0120.00616.46
7.3.160.0090.00616.61
7.2.330.0110.00716.64
7.2.320.0140.00416.64
7.2.310.0110.00616.60
7.2.300.0070.01016.74
7.2.290.0130.01016.51
7.2.60.0060.00916.74
7.2.00.0030.00919.44
7.1.200.0060.00616.04
7.1.100.0030.00918.28
7.1.70.0030.00617.26
7.1.60.0060.00919.46
7.1.50.0160.00716.87
7.1.00.0000.08022.59
7.0.200.0000.00916.85
7.0.140.0030.04721.97
7.0.60.0100.06019.75
7.0.50.0070.03717.84
7.0.40.0100.08720.00
7.0.30.0330.07020.14
7.0.20.0200.04320.11
7.0.10.0030.09020.05
7.0.00.0130.04320.19
5.6.280.0000.07720.98
5.6.210.0070.03720.52
5.6.200.0070.05018.12
5.6.190.0100.05020.39
5.6.180.4000.04320.41
5.6.170.0270.06720.71
5.6.160.0100.07020.44
5.6.150.0100.06018.18
5.6.140.0070.04718.18
5.6.130.0070.07718.11
5.6.120.0200.05021.00
5.6.110.0130.04020.97
5.6.100.0200.07020.95
5.6.90.0100.07721.11
5.6.80.0130.07020.50
5.6.70.3730.03720.36
5.5.350.0070.04020.29
5.5.340.0030.09317.96
5.5.330.0070.03720.21
5.5.320.0270.03720.21
5.5.310.0300.07720.26
5.5.300.0130.06317.96
5.5.290.0070.07017.89
5.5.280.0100.08020.89
5.5.270.0000.04720.83
5.5.260.0100.06320.79
5.5.250.0130.08320.48
5.5.240.0070.07020.18
5.4.450.0130.06719.45
5.4.440.0830.06019.47
5.4.430.0770.05319.51
5.4.420.0870.05319.47
5.4.410.0770.05719.14
5.4.400.0170.05018.50
5.4.390.0230.05018.72
5.4.380.0100.06018.74
5.4.370.0270.04718.73
5.4.360.0200.04718.50
5.4.350.0200.05018.78
5.4.340.0130.05318.78
5.4.320.0070.06318.62
5.4.310.0270.04018.56
5.4.300.0070.05718.72
5.4.290.0200.04718.62
5.4.280.0170.05018.73
5.4.270.0170.05018.69
5.4.260.0130.05318.64
5.4.250.0200.05018.64
5.4.240.0200.07318.55
5.4.230.0130.05318.53
5.4.220.0230.04718.67
5.4.210.0100.05718.55
5.4.200.0130.05016.48
5.4.190.0270.04318.60
5.4.180.0270.04018.68
5.4.170.0130.05718.69
5.4.160.0170.05718.75
5.4.150.0200.04718.62
5.4.140.0200.07316.32
5.4.130.0200.05016.25
5.4.120.0130.05016.24
5.4.110.0170.04716.35
5.4.100.0130.05316.16
5.4.90.0130.05316.30
5.4.80.0230.06016.15
5.4.70.0170.05316.13
5.4.60.0200.04316.28
5.4.50.0130.05016.16
5.4.40.0230.04716.16
5.4.30.0170.04716.13
5.4.20.0130.05316.27
5.4.10.0230.04716.00
5.4.00.0130.05015.62
5.3.290.0170.06014.72
5.3.280.0170.05714.65
5.3.270.0170.05314.65
5.3.260.0130.05714.55
5.3.250.0200.04714.56
5.3.240.0170.05314.60
5.3.230.0200.05014.66
5.3.220.0100.05714.47
5.3.210.0200.05014.71
5.3.200.0100.05714.47
5.3.190.0170.05314.55
5.3.180.0100.05714.65
5.3.170.0200.05014.66
5.3.160.0030.06314.51
5.3.150.0200.04714.61
5.3.140.0170.05314.54
5.3.130.0300.04014.61
5.3.120.0200.04714.50
5.3.110.0030.06714.47
5.3.100.0230.04314.05
5.3.90.0170.05313.95
5.3.80.0170.04714.00
5.3.70.0200.04714.02
5.3.60.0200.04314.04
5.3.50.0170.04713.92
5.3.40.0130.05013.98
5.3.30.0200.04313.83
5.3.20.0170.06313.79
5.3.10.0230.06013.56
5.3.00.0100.05313.65
5.2.170.0170.04711.20
5.2.160.0130.04311.08
5.2.150.0130.04311.20
5.2.140.0100.04311.27
5.2.130.0170.04011.03
5.2.120.0070.04311.03
5.2.110.0130.03711.13
5.2.100.0070.04711.05
5.2.90.0070.04711.06
5.2.80.0100.04311.13
5.2.70.0170.03711.12
5.2.60.0130.04011.02
5.2.50.0100.04711.05
5.2.40.0100.03711.13
5.2.30.0070.04311.03
5.2.20.0100.05010.94
5.2.10.0130.03710.87
5.2.00.0130.04310.77
5.1.60.0070.04010.02
5.1.50.0100.03310.11
5.1.40.0030.0409.99
5.1.30.0100.03310.38
5.1.20.0130.03310.39
5.1.10.0130.03310.25
5.1.00.0100.03710.16
5.0.50.0100.0238.63
5.0.40.0100.0238.59
5.0.30.0070.0408.40
5.0.20.0100.0238.32
5.0.10.0130.0208.25
5.0.00.0070.0408.27
4.4.90.0030.0235.91
4.4.80.0100.0175.88
4.4.70.0130.0135.91
4.4.60.0100.0175.86
4.4.50.0030.0235.89
4.4.40.0100.0375.90
4.4.30.0030.0235.84
4.4.20.0100.0175.88
4.4.10.0030.0235.92
4.4.00.0000.0405.93
4.3.110.0000.0275.75
4.3.100.0100.0175.91
4.3.90.0070.0205.82
4.3.80.0030.0335.89
4.3.70.0000.0235.82
4.3.60.0030.0235.82
4.3.50.0000.0275.83
4.3.40.0170.0235.74
4.3.30.0070.0174.55
4.3.20.0000.0274.56
4.3.10.0000.0274.46
4.3.00.0030.0236.92

preferences:
52.57 ms | 401 KiB | 5 Q