3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "%hey%_thereyou're_a%rockstar%\nyo%there%"; if (preg_match_all("/%([^%]*)%/", $str, $matches)) { print_r($matches[1]); }

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.4.130.0110.00819.01
8.4.120.0110.01023.91
8.4.110.0050.00422.22
8.4.100.0120.00918.66
8.4.90.0130.00818.63
8.4.80.0140.00418.63
8.4.70.0110.00818.30
8.4.60.0130.00818.91
8.4.50.0120.00718.39
8.4.40.0070.01417.79
8.4.30.0060.01320.35
8.4.20.0060.00617.79
8.4.10.0040.00419.86
8.3.260.0140.00616.38
8.3.250.0120.00717.05
8.3.240.0100.01016.82
8.3.230.0130.00716.90
8.3.220.0130.00718.79
8.3.210.0110.00816.59
8.3.200.0050.00416.85
8.3.190.0060.00218.83
8.3.180.0060.00318.16
8.3.170.0130.00719.13
8.3.160.0090.00918.19
8.3.150.0160.00318.47
8.3.140.0080.00017.00
8.3.130.0040.00418.51
8.3.120.0080.00020.56
8.3.110.0040.01118.38
8.3.100.0040.01416.54
8.3.90.0040.00426.77
8.3.80.0080.00416.50
8.3.70.0090.00616.75
8.3.60.0110.00718.56
8.3.50.0070.00720.24
8.3.40.0200.00019.85
8.3.30.0100.00718.91
8.3.20.0000.00724.18
8.3.10.0100.00724.66
8.3.00.0040.00426.16
8.2.290.0120.00720.31
8.2.280.0040.00418.48
8.2.270.0080.00818.93
8.2.260.0140.00418.69
8.2.250.0070.00017.01
8.2.240.0180.00017.18
8.2.230.0030.00620.94
8.2.220.0070.00324.06
8.2.210.0030.00526.77
8.2.200.0000.01216.75
8.2.190.0120.00916.88
8.2.180.0080.00825.92
8.2.170.0120.00318.91
8.2.160.0030.01222.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0030.00726.16
8.2.120.0050.00221.25
8.2.110.0060.00319.30
8.2.100.0040.00717.91
8.2.90.0000.00817.88
8.2.80.0050.00317.97
8.2.70.0040.00417.88
8.2.60.0060.00317.75
8.2.50.0070.00318.07
8.2.40.0040.00419.82
8.2.30.0040.00418.02
8.2.20.0030.00520.48
8.2.10.0000.00717.67
8.2.00.0000.00719.12
8.1.330.0120.00821.91
8.1.320.0110.00818.47
8.1.310.0080.00018.35
8.1.300.0070.01118.46
8.1.290.0050.00518.88
8.1.280.0040.01125.92
8.1.270.0000.00822.05
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00320.99
8.1.230.0090.00317.83
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00017.38
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0040.00418.55
8.1.160.0060.00318.84
8.1.150.0040.00418.73
8.1.140.0070.00317.41
8.1.130.0040.00418.72
8.1.120.0040.00417.59
8.1.110.0000.00717.42
8.1.100.0000.00817.53
8.1.90.0070.00017.43
8.1.80.0070.00517.60
8.1.70.0030.00317.41
8.1.60.0080.00017.63
8.1.50.0050.00317.69
8.1.40.0060.00317.62
8.1.30.0060.00317.72
8.1.20.0130.00517.74
8.1.10.0210.00617.49
8.1.00.0160.00417.61
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00820.20
8.0.270.0070.00019.80
8.0.260.0060.00018.45
8.0.250.0030.00617.00
8.0.240.0000.00717.02
8.0.230.0000.00816.92
8.0.220.0000.00716.86
8.0.210.0070.00016.85
8.0.200.0030.00317.06
8.0.190.0040.00417.07
8.0.180.0040.00416.95
8.0.170.0050.00516.85
8.0.160.0040.00416.87
8.0.150.0090.00916.92
8.0.140.0150.00816.91
8.0.130.0230.00316.90
8.0.120.0170.00716.98
8.0.110.0220.00316.86
8.0.100.0040.01416.85
8.0.90.0150.00516.95
8.0.80.0050.01117.02
8.0.70.0180.00016.92
8.0.60.0110.00816.95
8.0.50.0140.00516.95
8.0.30.0050.01016.88
8.0.20.0050.00816.83
8.0.10.0130.00717.08
7.4.330.0050.00015.55
7.4.320.0030.00316.64
7.4.300.0000.00716.64
7.4.290.0000.00816.70
7.4.280.0040.00416.71
7.4.270.0280.00616.62
7.4.260.0150.00316.77
7.4.250.0230.00316.69
7.4.240.0230.00616.61
7.4.230.0240.00616.63
7.4.220.0230.00216.75
7.4.210.0190.00716.70
7.4.200.0170.00616.75
7.4.190.0200.00416.73
7.4.180.0170.00316.69
7.4.160.0130.00916.78
7.4.150.0200.00316.63
7.4.140.0130.00916.52
7.4.130.0190.00316.67
7.4.120.0190.00416.54
7.4.110.0090.00916.44
7.4.100.0120.00816.61
7.4.90.0190.00516.66
7.4.80.0240.00016.48
7.4.70.0210.00216.61
7.4.60.0180.00216.70
7.4.50.0110.00816.37
7.4.40.0080.01116.27
7.4.30.0100.00716.52
7.4.20.0120.00416.45
7.4.10.0080.00716.51
7.4.00.0110.00516.29

preferences:
100.75 ms | 403 KiB | 5 Q