3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = <<<EOT start<body> Some text Some more text </body> text after body EOT; $regex = "/.*<body>(.*?)<\/body>/ms"; $result = preg_match( $regex, $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.5.70.0090.00818.57
8.5.60.0050.00216.90
8.5.50.0110.00616.80
8.5.30.0080.01119.31
8.5.20.0090.00819.43
8.5.10.0090.00919.82
8.5.00.0130.00919.79
8.4.210.0180.00719.75
8.4.180.0110.01122.03
8.4.170.0140.00723.79
8.4.160.0110.01123.80
8.4.150.0070.00516.86
8.4.140.0110.01117.66
8.4.130.0150.00617.77
8.4.120.0120.00722.30
8.4.110.0120.00818.97
8.4.100.0100.00518.92
8.4.90.0070.00120.61
8.4.80.0090.00817.88
8.4.70.0080.00817.95
8.4.60.0150.00618.77
8.4.50.0110.00919.83
8.4.40.0180.00318.04
8.4.30.0100.01020.54
8.4.20.0180.00419.91
8.4.10.0070.01323.68
8.3.300.0140.00920.91
8.3.290.0130.00818.69
8.3.280.0120.00818.64
8.3.270.0130.00516.68
8.3.260.0110.00716.84
8.3.250.0080.00719.05
8.3.240.0120.00716.58
8.3.230.0130.00516.61
8.3.220.0130.00518.74
8.3.210.0090.00916.86
8.3.200.0060.00316.84
8.3.190.0080.00716.85
8.3.180.0100.00716.83
8.3.170.0090.00917.11
8.3.160.0060.01218.53
8.3.150.0110.00720.63
8.3.140.0030.00616.63
8.3.130.0080.00016.63
8.3.120.0090.00018.74
8.3.110.0100.00020.94
8.3.100.0070.00724.06
8.3.90.0080.00026.77
8.3.80.0080.00416.50
8.3.70.0060.01216.58
8.3.60.0070.01418.43
8.3.50.0070.00720.23
8.3.40.0130.00319.96
8.3.30.0130.00520.96
8.3.20.0060.00823.57
8.3.10.0070.00723.81
8.3.00.0090.00524.56
8.2.300.0110.01018.16
8.2.290.0120.00720.20
8.2.280.0100.01020.10
8.2.270.0130.00617.34
8.2.260.0030.00620.54
8.2.250.0120.00617.03
8.2.240.0080.00317.06
8.2.230.0030.00722.58
8.2.220.0000.00837.54
8.2.210.0040.00426.77
8.2.200.0130.00516.50
8.2.190.0130.00716.88
8.2.180.0100.00625.92
8.2.170.0180.00319.04
8.2.160.0150.00122.96
8.2.150.0090.00424.31
8.2.140.0110.00323.81
8.2.130.0090.00224.56
8.2.120.0090.00622.06
8.2.110.0100.00222.55
8.2.100.0110.00220.35
8.2.90.0090.00720.27
8.2.80.0100.00320.36
8.2.70.0080.00420.36
8.2.60.0070.00720.45
8.2.50.0070.00620.52
8.2.40.0060.00520.49
8.2.30.0050.00920.52
8.2.20.0060.00521.76
8.2.10.0100.00520.65
8.2.00.0070.00721.12
8.1.340.0120.00719.85
8.1.330.0110.00821.99
8.1.320.0110.00916.26
8.1.310.0060.00318.49
8.1.300.0000.01018.27
8.1.290.0070.00330.84
8.1.280.0110.00425.92
8.1.270.0070.00623.81
8.1.260.0060.00724.66
8.1.250.0070.01025.53
8.1.240.0050.00921.83
8.1.230.0100.00522.83
8.1.220.0040.01020.36
8.1.210.0080.00620.87
8.1.200.0060.00820.16
8.1.190.0030.01020.10
8.1.180.0120.00320.53
8.1.170.0050.01020.78
8.1.160.0110.00620.84
8.1.150.0060.00620.84
8.1.140.0110.00320.18
8.1.130.0040.00720.27
8.1.120.0060.00520.29
8.1.110.0070.00720.28
8.1.100.0100.00420.26
8.1.90.0100.00520.28
8.1.80.0090.00420.21
8.1.70.0080.00320.21
8.1.60.0060.00520.36
8.1.50.0000.01320.33
8.1.40.0070.00520.29
8.1.30.0040.00720.34
8.1.20.0090.00420.31
8.1.10.0060.00721.18
8.1.00.0070.00520.31
8.0.300.0060.00721.50
8.0.290.0170.00219.86
8.0.280.0110.00820.70
8.0.270.0080.00720.09
8.0.260.0120.00619.96
8.0.250.0100.00719.98
8.0.240.0140.00119.96
8.0.230.0090.00519.96
8.0.220.0070.00519.96
8.0.210.0150.00220.00
8.0.200.0110.00719.96
8.0.190.0110.00619.98
8.0.180.0120.00219.96
8.0.170.0090.00719.98
8.0.160.0110.00319.99
8.0.150.0140.00219.96
8.0.140.0120.00519.96
8.0.130.0120.00319.96
8.0.120.0130.00319.96
8.0.110.0130.00319.96
8.0.100.0080.00719.96
8.0.90.0120.00719.96
8.0.80.0180.00019.96
8.0.70.0100.00019.96
8.0.60.0110.00819.96
8.0.50.0140.00519.96
8.0.30.0090.00219.98
8.0.20.0090.00620.00
8.0.10.0080.00820.06

preferences:
54.56 ms | 1116 KiB | 5 Q