3v4l.org

run code in 500+ PHP versions simultaneously
<?php $my_string = " >>12345 Hello this is an example string. "; preg_match("/(>>\d+)/", $my_string, $matches); echo $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.5.70.0040.00416.89
8.5.60.0120.00716.92
8.5.50.0110.00616.99
8.5.30.0100.00719.50
8.5.20.0070.01219.60
8.5.10.0110.00920.08
8.5.00.0140.00619.91
8.4.210.0130.00919.78
8.4.180.0130.00919.92
8.4.170.0170.00521.71
8.4.160.0130.00923.90
8.4.150.0070.00716.90
8.4.140.0140.00817.70
8.4.130.0120.01017.91
8.4.120.0130.00720.61
8.4.110.0140.00622.69
8.4.100.0090.00818.00
8.4.90.0130.00820.70
8.4.80.0050.00318.02
8.4.70.0060.00218.31
8.4.60.0120.00918.63
8.4.50.0140.00620.34
8.4.40.0040.00419.58
8.4.30.0080.00020.89
8.4.20.0090.00025.73
8.4.10.0100.01023.68
8.3.300.0110.01320.63
8.3.290.0100.01218.64
8.3.280.0140.00718.47
8.3.270.0090.01116.48
8.3.260.0100.00916.81
8.3.250.0140.00418.68
8.3.240.0120.00816.51
8.3.230.0110.00516.71
8.3.220.0080.01117.30
8.3.210.0070.00716.73
8.3.200.0050.00416.53
8.3.190.0060.00218.85
8.3.180.0100.00917.17
8.3.170.0090.00018.88
8.3.160.0100.01016.63
8.3.150.0110.00717.07
8.3.140.0080.00016.58
8.3.130.0060.00318.40
8.3.120.0080.00018.96
8.3.110.0090.00020.94
8.3.100.0130.00324.06
8.3.90.0120.00426.77
8.3.80.0030.00619.36
8.3.70.0110.00416.50
8.3.60.0090.00616.50
8.3.50.0140.00716.55
8.3.40.0100.00320.06
8.3.30.0070.00718.93
8.3.20.0050.00324.18
8.3.10.0030.00524.66
8.3.00.0000.00826.16
8.2.300.0100.00719.98
8.2.290.0080.00920.87
8.2.280.0110.00818.37
8.2.270.0110.00819.03
8.2.260.0040.00420.46
8.2.250.0000.01416.91
8.2.240.0180.00022.69
8.2.230.0060.00322.58
8.2.220.0000.00937.54
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0150.00318.79
8.2.180.0100.01016.75
8.2.170.0110.01119.27
8.2.160.0100.00722.96
8.2.150.0030.00525.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0050.00321.18
8.2.110.0030.00621.09
8.2.100.0090.00317.94
8.2.90.0050.00318.03
8.2.80.0040.00419.73
8.2.70.0050.00317.63
8.2.60.0030.00618.05
8.2.50.0070.00518.07
8.2.40.0000.00820.13
8.2.30.0030.00518.13
8.2.20.0040.00419.34
8.2.10.0070.00417.68
8.2.00.0120.00617.66
8.1.340.0130.00717.83
8.1.330.0060.00721.83
8.1.320.0080.01018.02
8.1.310.0140.00416.79
8.1.300.0000.00818.18
8.1.290.0070.00330.84
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0080.00421.99
8.1.230.0040.00822.66
8.1.220.0000.00817.74
8.1.210.0060.00318.91
8.1.200.0030.00617.48
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0030.00520.67
8.1.160.0070.00018.87
8.1.150.0000.00718.71
8.1.140.0080.00817.44
8.1.130.0030.00717.52
8.1.120.0090.00917.65
8.1.110.0130.00417.51
8.1.100.0060.01117.48
8.1.90.0080.00817.64
8.1.80.0110.00717.52
8.1.70.0080.00817.56
8.1.60.0200.00017.61
8.1.50.0160.00317.63
8.1.40.0120.00917.59
8.1.30.0170.00517.73
8.1.20.0170.00217.77
8.1.10.0130.00517.75
8.1.00.0130.00517.68
8.0.300.0050.00319.86
8.0.290.0000.00716.75
8.0.280.0000.00718.40
8.0.270.0110.00616.93
8.0.260.0120.00516.87
8.0.250.0100.00317.00
8.0.240.0080.00416.92
8.0.230.0100.00316.84
8.0.220.0060.00616.89
8.0.210.0100.00316.77
8.0.200.0040.00816.85
8.0.190.0070.00416.95
8.0.180.0120.00416.94
8.0.170.0080.00816.88
8.0.160.0060.01216.92
8.0.150.0110.00416.90
8.0.140.0060.00616.89
8.0.130.0100.00316.84
8.0.120.0000.01216.88
8.0.110.0050.00716.89
8.0.100.0080.00816.73
8.0.90.0150.00016.89
8.0.80.0090.00516.77
8.0.70.0120.00316.90
8.0.60.0080.00816.78
8.0.50.0070.00716.92
8.0.30.0110.00416.90
8.0.20.0100.00516.95
8.0.10.0160.00017.00

preferences:
51.49 ms | 1112 KiB | 5 Q