3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "<br><img src='files/bagel.png'><br><br>"; $pattern = '<img src=.*>'; preg_match($pattern, $subject, $matches); print_r($matches); ?>

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.0070.01418.26
8.3.50.0120.00721.33
8.3.40.0100.00718.96
8.3.30.0140.00418.67
8.3.20.0040.00418.76
8.3.10.0060.00320.51
8.3.00.0070.00417.75
8.2.180.0090.01216.63
8.2.170.0110.00422.96
8.2.160.0070.01022.24
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00019.95
8.2.110.0030.00721.03
8.2.100.0040.00717.84
8.2.90.0050.00319.28
8.2.80.0000.00817.97
8.2.70.0080.00017.75
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0040.00417.96
8.2.30.0080.00019.91
8.2.20.0060.00317.70
8.2.10.0000.00717.67
8.2.00.0040.00417.76
8.1.280.0000.01425.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00022.38
8.1.230.0110.00021.05
8.1.220.0000.00818.77
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0060.00317.53
8.1.180.0080.00018.10
8.1.170.0000.00718.71
8.1.160.0070.00018.75
8.1.150.0000.00718.73
8.1.140.0040.00417.53
8.1.130.0030.00317.83
8.1.120.0030.00317.42
8.1.110.0000.00717.43
8.1.100.0000.00817.57
8.1.90.0040.00417.43
8.1.80.0070.00017.43
8.1.70.0030.00317.49
8.1.60.0040.00417.66
8.1.50.0050.00217.47
8.1.40.0000.00817.60
8.1.30.0040.00417.69
8.1.20.0000.00917.73
8.1.10.0070.00017.66
8.1.00.0040.00417.60
8.0.300.0030.00319.85
8.0.290.0000.00716.63
8.0.280.0000.00718.39
8.0.270.0040.00417.11
8.0.260.0030.00318.74
8.0.250.0000.00717.06
8.0.240.0070.00017.02
8.0.230.0000.00816.93
8.0.220.0030.00516.96
8.0.210.0000.00716.95
8.0.200.0000.00717.03
8.0.190.0030.00616.94
8.0.180.0040.00416.89
8.0.170.0080.00017.02
8.0.160.0000.00716.97
8.0.150.0060.00317.00
8.0.140.0060.00316.84
8.0.130.0030.00313.40
8.0.120.0040.00416.92
8.0.110.0030.00516.89
8.0.100.0040.00416.83
8.0.90.0040.00417.00
8.0.80.0070.00816.91
8.0.70.0070.00016.78
8.0.60.0040.00317.08
8.0.50.0040.00416.93
8.0.30.0100.00917.14
8.0.20.0150.00517.40
8.0.10.0040.00416.88
8.0.00.0090.01117.04
7.4.330.0000.00514.93
7.4.320.0060.00016.75
7.4.300.0000.00716.59
7.4.290.0000.01016.76
7.4.280.0040.00416.63
7.4.270.0030.00316.62
7.4.260.0000.00613.38
7.4.250.0030.00616.64
7.4.240.0000.00816.68
7.4.230.0000.00716.57
7.4.220.0050.01216.60
7.4.210.0060.01016.78
7.4.200.0040.00316.74
7.4.190.0070.00016.70
7.4.160.0110.00316.54
7.4.150.0130.00317.40
7.4.140.0120.00517.26
7.4.130.0080.01016.54
7.4.120.0080.00816.62
7.4.110.0130.00316.66
7.4.100.0140.00316.54
7.4.90.0080.01116.48
7.4.80.0070.01019.03
7.4.70.0090.00916.53
7.4.60.0100.00716.75
7.4.50.0030.00616.42
7.4.40.0040.00822.27
7.4.30.0100.00616.54
7.4.00.0030.00714.87
7.3.330.0000.00613.17
7.3.320.0030.00312.99
7.3.310.0000.00716.12
7.3.300.0070.00016.27
7.3.290.0100.00616.23
7.3.280.0100.00616.28
7.3.270.0070.01117.40
7.3.260.0100.00718.24
7.3.250.0130.00816.52
7.3.240.0090.00916.27
7.3.230.0130.00316.39
7.3.210.0100.00716.53
7.3.200.0070.01419.39
7.3.190.0090.01316.35
7.3.180.0090.00616.48
7.3.170.0080.01416.52
7.3.160.0030.01616.22
7.3.120.0090.00915.20
7.2.330.0080.01116.61
7.2.320.0030.01316.47
7.2.310.0000.02216.60
7.2.300.0070.01016.63
7.2.290.0100.00616.68
7.2.00.0060.00619.63
7.1.100.0040.00818.05
7.1.70.0150.00517.26
7.1.60.0130.01319.40
7.1.50.0030.01016.96
7.1.00.0000.03722.52
7.0.200.0080.00415.03
7.0.140.0030.07322.12
7.0.60.0070.07719.86
7.0.50.0100.06317.88
7.0.40.0130.08020.29
7.0.30.0330.04720.28
7.0.20.0200.04720.11
7.0.10.0300.07320.25
7.0.00.0100.08720.07
5.6.280.0100.06720.83
5.6.210.0070.07720.75
5.6.200.0130.07718.28
5.6.190.0170.08020.49
5.6.180.0270.04020.68
5.6.170.0330.04320.58
5.6.160.0100.08320.55
5.6.150.0170.06718.14
5.6.140.0200.06718.12
5.6.130.0070.06018.27
5.6.120.0200.05320.98
5.6.110.0130.07720.97
5.6.100.0070.07720.97
5.6.90.0130.08020.99
5.6.80.0170.07020.52
5.6.70.4400.03020.36
5.5.350.0130.07720.45
5.5.340.0130.05018.07
5.5.330.0030.04320.44
5.5.320.0400.07320.19
5.5.310.0130.04320.23
5.5.300.0030.07018.07
5.5.290.0030.04018.04
5.5.280.0100.08720.86
5.5.270.0070.03720.75
5.5.260.0100.03720.75
5.5.250.0130.07020.76
5.5.240.0130.07020.13
5.4.450.0300.04719.55
5.4.440.4200.04019.40
5.4.430.0100.05319.32
5.4.420.0030.06019.67
5.4.410.0230.04019.31
5.4.400.0100.07319.09
5.4.390.0130.04719.16
5.4.380.0200.05018.46
5.4.370.0130.05718.47
5.4.360.0200.05018.72
5.4.350.0050.03912.00
5.4.340.0110.05211.99
5.4.320.0090.04212.48
5.4.310.0040.04212.48
5.4.300.0080.03712.48
5.4.290.0080.04612.47
5.4.280.0090.04612.37
5.4.270.0090.04012.37
5.4.260.0090.04712.37
5.4.250.0120.04612.37
5.4.240.0070.04612.37
5.4.230.0070.04412.36
5.4.220.0090.04912.36
5.4.210.0060.05112.37
5.4.200.0070.04612.37
5.4.190.0080.04312.36
5.4.180.0100.04112.36
5.4.170.0070.03812.38
5.4.160.0070.03712.37
5.4.150.0080.03712.37
5.4.140.0070.03712.05
5.4.130.0070.03712.04
5.4.120.0070.03912.00
5.4.110.0080.04411.99
5.4.100.0080.05011.99
5.4.90.0080.05111.99
5.4.80.0100.06211.99
5.4.70.0090.04711.99
5.4.60.0060.04611.99
5.4.50.0080.04611.99
5.4.40.0110.04511.97
5.4.30.0070.04311.97
5.4.20.0080.04311.97
5.4.10.0100.04111.98
5.4.00.0070.05211.46
5.3.290.0060.03912.80
5.3.280.0080.04812.71
5.3.270.0120.05712.72
5.3.260.0080.05112.72
5.3.250.0100.05712.72
5.3.240.0070.05412.72
5.3.230.0080.04612.71
5.3.220.0090.03712.68
5.3.210.0080.04612.68
5.3.200.0060.04512.68
5.3.190.0090.04112.67
5.3.180.0080.04312.67
5.3.170.0090.03912.67
5.3.160.0070.04312.67
5.3.150.0050.04612.67
5.3.140.0070.04612.66
5.3.130.0090.04812.66
5.3.120.0080.04512.66
5.3.110.0070.04712.66
5.3.100.0070.04212.12
5.3.90.0090.04512.10
5.3.80.0080.04112.09
5.3.70.0070.04212.09
5.3.60.0070.04512.08
5.3.50.0050.04512.02
5.3.40.0060.04212.02

preferences:
40.73 ms | 401 KiB | 5 Q