3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(preg_match('/.*(\d+).*/','lol rofl',$matches) && count($matches) > 1) { echo 'yay'; } if (count($foo)) { echo "foo\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.40.0040.01118.92
8.3.30.0130.00319.21
8.3.20.0080.00020.34
8.3.10.0060.00322.10
8.3.00.0020.00522.52
8.2.170.0040.01122.96
8.2.160.0110.00718.91
8.2.150.0050.00324.18
8.2.140.0150.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00019.73
8.2.110.0060.00322.24
8.2.100.0060.00620.01
8.2.90.0040.00419.22
8.2.80.0000.00818.00
8.2.70.0060.00317.88
8.2.60.0080.00017.79
8.2.50.0030.00618.07
8.2.40.0000.00819.79
8.2.30.0040.00418.14
8.2.20.0000.00717.82
8.2.10.0040.00417.93
8.2.00.0080.00017.95
8.1.270.0080.00022.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.95
8.1.230.0100.00019.15
8.1.220.0040.00417.76
8.1.210.0050.00318.77
8.1.200.0100.00017.35
8.1.190.0040.00417.43
8.1.180.0080.00018.64
8.1.170.0000.00818.62
8.1.160.0000.00722.17
8.1.150.0000.00818.59
8.1.140.0040.00417.56
8.1.130.0000.00817.78
8.1.120.0030.00417.49
8.1.110.0050.00317.52
8.1.100.0070.00017.45
8.1.90.0000.00817.48
8.1.80.0020.00517.49
8.1.70.0000.00717.52
8.1.60.0030.00617.51
8.1.50.0070.00017.55
8.1.40.0080.00017.60
8.1.30.0040.00417.70
8.1.20.0040.00417.75
8.1.10.0040.00417.63
8.1.00.0000.00817.55
8.0.300.0040.00418.77
8.0.290.0000.00717.16
8.0.280.0070.00018.39
8.0.270.0000.00817.27
8.0.260.0050.00316.98
8.0.250.0060.00017.14
8.0.240.0030.00317.14
8.0.230.0000.00717.04
8.0.220.0030.00317.09
8.0.210.0070.00017.08
8.0.200.0000.00617.14
8.0.190.0030.00617.08
8.0.180.0020.00517.10
8.0.170.0040.00417.03
8.0.160.0000.00816.97
8.0.150.0040.00416.93
8.0.140.0070.00017.01
8.0.130.0000.00613.48
8.0.120.0050.00317.09
8.0.110.0050.00216.98
8.0.100.0040.00316.89
8.0.90.0000.00716.92
8.0.80.0120.00617.11
8.0.70.0000.00717.04
8.0.60.0040.00417.13
8.0.50.0040.00417.14
8.0.30.0160.00617.38
8.0.20.0110.00817.40
8.0.10.0040.00417.22
8.0.00.0080.01016.93
7.4.330.0000.00515.03
7.4.320.0060.00016.78
7.4.300.0000.00616.65
7.4.290.0000.00716.75
7.4.280.0080.00016.72
7.4.270.0040.00416.55
7.4.260.0000.00816.70
7.4.250.0000.00716.70
7.4.240.0030.00316.70
7.4.230.0030.00316.73
7.4.220.0080.00816.74
7.4.210.0100.00516.71
7.4.200.0030.00316.46
7.4.190.0000.00716.86
7.4.160.0060.00916.65
7.4.150.0140.00317.40
7.4.140.0100.00917.86
7.4.130.0080.01016.78
7.4.120.0060.01016.79
7.4.110.0100.00716.80
7.4.100.0130.01016.61
7.4.90.0060.01116.71
7.4.80.0080.00819.39
7.4.70.0150.00816.57
7.4.60.0130.00316.46
7.4.50.0040.00416.58
7.4.40.0130.00322.77
7.4.30.0060.01216.60
7.4.00.0000.01514.90
7.3.330.0030.00313.23
7.3.320.0000.00513.13
7.3.310.0000.00816.34
7.3.300.0000.00616.44
7.3.290.0110.01216.46
7.3.280.0050.01016.41
7.3.270.0070.01017.40
7.3.260.0090.00916.44
7.3.250.0070.01216.41
7.3.240.0100.00716.45
7.3.230.0120.00616.58
7.3.210.0070.01216.43
7.3.200.0130.00619.39
7.3.190.0070.01016.61
7.3.180.0080.00816.69
7.3.170.0040.01216.43
7.3.160.0110.00416.55
7.3.120.0070.00714.82
7.2.330.0040.01216.70
7.2.320.0060.01516.75
7.2.310.0110.00716.75
7.2.300.0070.01116.72
7.2.290.0140.00616.65
7.2.60.0120.02016.53
7.1.200.0070.00715.90
7.1.70.0000.00717.16
7.1.60.0100.01419.82
7.1.50.0170.00716.78
7.1.00.0030.08722.37
7.0.200.0050.00316.89
7.0.140.0130.06322.21
7.0.60.0070.08319.95
7.0.50.0070.04017.84
7.0.40.0000.05320.07
7.0.30.0200.05020.20
7.0.20.0230.08020.03
7.0.10.0270.08020.13
7.0.00.0130.08320.13
5.6.280.0030.07021.09
5.6.210.0030.07020.52
5.6.200.0170.07718.07
5.6.190.0000.04720.27
5.6.180.3230.04320.41
5.6.170.0500.06720.41
5.6.160.0070.04020.54
5.6.150.0000.04318.17
5.6.140.0100.07718.18
5.6.130.0000.08318.22
5.6.120.0000.06721.14
5.6.110.0070.04021.02
5.6.100.0170.08021.02
5.6.90.0000.04321.12
5.6.80.0030.08320.56
5.6.70.0270.06020.42
5.5.350.0030.03020.37
5.5.340.0030.04017.99
5.5.330.0130.08320.40
5.5.320.0100.04320.13
5.5.310.0230.08320.31
5.5.300.0100.07717.92
5.5.290.0100.08018.01
5.5.280.0030.04720.77
5.5.270.0130.08020.79
5.5.260.0100.07720.95
5.5.250.0030.08320.59
5.5.240.0070.04720.15
5.4.450.0900.06019.32
5.4.440.0770.05719.32
5.4.430.0730.06019.46
5.4.420.0400.05719.60
5.4.410.0830.05319.41
5.4.400.1530.00018.55
5.4.390.1530.00018.61
5.4.380.0330.04718.67
5.4.370.0200.05318.67
5.4.360.0330.05318.79
5.4.350.0270.05318.58
5.4.340.0370.05018.72
5.4.320.0060.03612.45
5.4.310.0100.03412.45
5.4.300.0050.03612.45
5.4.290.0120.04912.45
5.4.280.0050.03512.35
5.4.270.0040.04012.34
5.4.260.0100.06718.99
5.4.250.0070.05318.65
5.4.240.0000.06019.00
5.4.230.0030.07018.88
5.4.220.0030.05719.02
5.4.210.0230.06018.86
5.4.200.0130.04318.88
5.4.190.0070.05318.81
5.4.180.0230.03318.92
5.4.170.0070.06018.72
5.4.160.0130.04718.89
5.4.150.0030.06318.76
5.4.140.0070.06316.27
5.4.130.0070.04716.47
5.4.120.0170.04316.23
5.4.110.0030.05316.45
5.4.100.0170.05316.29
5.4.90.0070.05316.29
5.4.80.0070.07316.52
5.4.70.0000.05316.43
5.4.60.0100.04716.40
5.4.50.0200.03716.50
5.4.40.0070.04716.52
5.4.30.0130.04016.39
5.4.20.0100.04316.41
5.4.10.0100.04316.31
5.4.00.0070.04715.98
5.3.290.0080.03712.80
5.3.280.0130.05714.32
5.3.270.0130.07014.39
5.3.260.0130.04714.66
5.3.250.0030.06314.61
5.3.240.0070.05014.47
5.3.230.0100.04714.61
5.3.220.0030.05314.57
5.3.210.0030.05714.61
5.3.200.0130.04714.26
5.3.190.0070.05314.33
5.3.180.0000.06014.71
5.3.170.0100.06714.71
5.3.160.0070.06714.34
5.3.150.0030.05314.40
5.3.140.0100.04714.44
5.3.130.0030.05314.55
5.3.120.0170.04014.46
5.3.110.0000.05714.39
5.3.100.0070.05014.03
5.3.90.0030.07313.88
5.3.80.0100.04714.16
5.3.70.0030.05313.71
5.3.60.0030.05314.01
5.3.50.0070.05713.96
5.3.40.0100.04313.96
5.3.30.0000.05713.91
5.3.20.0000.05313.54
5.3.10.0170.05713.73
5.3.00.0130.04013.48
5.2.170.0100.03711.16
5.2.160.0170.03311.25
5.2.150.0000.05011.07
5.2.140.0070.04711.07
5.2.130.0030.04011.10
5.2.120.0130.05010.98
5.2.110.0000.05711.09
5.2.100.0030.04311.01
5.2.90.0130.04311.01
5.2.80.0100.04011.23
5.2.70.0000.04711.04
5.2.60.0070.04711.16
5.2.50.0070.04011.04
5.2.40.0070.03710.89
5.2.30.0100.05011.08
5.2.20.0070.04311.05
5.2.10.0030.04010.91
5.2.00.0030.04010.79
5.1.60.0000.03710.00
5.1.50.0070.03010.22
5.1.40.0070.0439.74
5.1.30.0070.03310.09
5.1.20.0070.03710.41
5.1.10.0070.04710.00
5.1.00.0030.0439.91
5.0.50.0070.0278.63
5.0.40.0000.0408.36
5.0.30.0030.0438.11
5.0.20.0130.0238.33
5.0.10.0030.0278.39
5.0.00.0070.0538.11
4.4.90.0070.0176.35
4.4.80.0000.0236.35
4.4.70.0030.0206.35
4.4.60.0030.0206.35
4.4.50.0000.0236.35
4.4.40.0030.0336.35
4.4.30.0030.0206.35
4.4.20.0070.0206.35
4.4.10.0070.0176.35
4.4.00.0000.0376.35
4.3.110.0000.0236.35
4.3.100.0000.0236.35
4.3.90.0070.0236.35
4.3.80.0000.0376.35
4.3.70.0000.0336.35
4.3.60.0000.0276.35
4.3.50.0030.0306.35
4.3.40.0030.0336.35
4.3.30.0030.0206.35
4.3.20.0000.0307.15
4.3.10.0070.0237.15
4.3.00.0070.0236.97

preferences:
38.77 ms | 400 KiB | 5 Q