3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is my test case for an example."; preg_match_all( "/(?=(\S+ \S+))\S+ /", $string, $m ); var_export($m[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.00917.94
8.4.120.0130.00722.30
8.4.110.0040.00422.32
8.4.100.0150.00618.18
8.4.90.0080.01220.48
8.4.80.0050.00318.89
8.4.70.0060.00218.86
8.4.60.0080.01218.65
8.4.50.0030.00620.58
8.4.40.0150.00620.58
8.4.30.0080.00021.98
8.4.20.0130.00619.88
8.4.10.0160.00321.84
8.3.260.0090.01016.56
8.3.250.0140.00619.02
8.3.240.0120.00716.53
8.3.230.0070.00416.77
8.3.220.0110.00819.02
8.3.210.0040.00516.71
8.3.200.0040.00516.44
8.3.190.0050.00316.84
8.3.180.0030.00516.79
8.3.170.0040.00417.00
8.3.160.0130.00618.40
8.3.150.0110.00716.66
8.3.140.0110.00716.66
8.3.130.0090.01218.21
8.3.120.0030.00618.74
8.3.110.0070.00320.94
8.3.100.0060.00324.06
8.3.90.0080.00026.77
8.3.80.0030.00618.43
8.3.70.0130.01018.30
8.3.60.0120.00616.34
8.3.50.0140.00716.79
8.3.40.0070.00723.64
8.3.30.0110.00418.78
8.3.20.0070.00024.18
8.3.10.0000.00924.66
8.3.00.0080.00026.16
8.2.290.0130.00616.74
8.2.280.0050.00420.26
8.2.270.0100.01016.91
8.2.260.0120.00418.46
8.2.250.0080.00016.68
8.2.240.0050.00317.49
8.2.230.0040.00422.58
8.2.220.0080.00837.54
8.2.210.0000.00726.77
8.2.200.0030.00718.67
8.2.190.0130.00617.03
8.2.180.0170.00316.75
8.2.170.0150.00618.95
8.2.160.0110.00422.96
8.2.150.0070.00425.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00919.61
8.2.110.0030.00622.30
8.2.100.0100.00318.03
8.2.90.0080.00017.88
8.2.80.0000.00818.88
8.2.70.0030.00617.75
8.2.60.0070.01017.50
8.2.50.0200.00017.50
8.2.40.0100.00717.48
8.2.30.0070.01017.73
8.2.20.0100.00517.63
8.2.10.0160.00017.63
8.2.00.0060.00917.50
8.1.330.0100.00416.35
8.1.320.0100.00916.19
8.1.310.0030.00518.54
8.1.300.0040.00418.29
8.1.290.0040.00730.84
8.1.280.0040.01125.92
8.1.270.0140.00324.66
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0050.00523.86
8.1.230.0040.00818.92
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0120.00616.87
8.1.180.0110.00517.25
8.1.170.0130.00317.13
8.1.160.0110.00617.38
8.1.150.0160.00017.38
8.1.140.0100.00716.99
8.1.130.0090.00917.13
8.1.120.0130.00417.00
8.1.110.0140.00317.36
8.1.100.0140.00317.25
8.1.90.0130.00317.09
8.1.80.0100.00617.22
8.1.70.0150.00217.23
8.1.60.0080.00817.49
8.1.50.0090.00917.13
8.1.40.0090.00917.38
8.1.30.0120.00517.47
8.1.20.0130.00517.35
8.1.10.0100.01017.38
8.1.00.0070.01117.36
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0140.00216.84
8.0.270.0070.00716.75
8.0.260.0080.00816.52
8.0.250.0160.00016.75
8.0.240.0220.00016.75
8.0.230.0080.00816.52
8.0.220.0100.00616.71
8.0.210.0140.00216.63
8.0.200.0120.00416.75
8.0.190.0180.00016.61
8.0.180.0120.00516.75
8.0.170.0130.00316.75
8.0.160.0130.00316.59
8.0.150.0100.00716.71
8.0.140.0110.00516.59
8.0.130.0100.00616.88
8.0.120.0120.00416.75
8.0.110.0090.00616.61
8.0.100.0070.01016.52
8.0.90.0080.00816.74
8.0.80.0080.00816.52
8.0.70.0190.00016.62
8.0.60.0090.00616.75
8.0.50.0100.00616.52
8.0.30.0080.00816.52
8.0.20.0100.00516.88
8.0.10.0150.00016.52

preferences:
26.7 ms | 403 KiB | 5 Q