3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tags = "-10 ayanami_rei"; preg_match_all('/-\d+/', $tags, $matches); var_dump($matches[0]); if ($matches[0]){ $loop = substr($matches[0],1,strlen($matches[0])); $tags = str_replace("{$matches[0]} ","",$tags); $loop = ($loop >=11 ? 10 : $loop); } else { $loop = 1; } for ($i = 1; $i <= $loop; $i++) { echo $tags; }

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.40.0140.00419.07
8.3.30.0110.00419.08
8.3.20.0040.00418.82
8.3.10.0070.00021.70
8.3.00.0040.00421.71
8.2.170.0070.01422.96
8.2.160.0070.00722.10
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.82
8.2.120.0080.00026.35
8.2.110.0050.00521.03
8.2.100.0130.00017.97
8.2.90.0040.00419.41
8.2.80.0040.00417.97
8.2.70.0030.00617.88
8.2.60.0000.00818.05
8.2.50.0000.01118.10
8.2.40.0040.00420.45
8.2.30.0060.00319.20
8.2.20.0040.00418.23
8.2.10.0040.00418.21
8.2.00.0000.00718.05
8.1.270.0000.00822.03
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00322.66
8.1.230.0100.00019.00
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00017.25
8.1.180.0000.00918.10
8.1.170.0070.00018.75
8.1.160.0000.00823.88
8.1.150.0050.00218.79
8.1.140.0000.00719.56
8.1.130.0030.00317.68
8.1.120.0050.00317.46
8.1.110.0030.00517.60
8.1.100.0000.00817.46
8.1.90.0040.00417.61
8.1.80.0070.00017.49
8.1.70.0050.00217.55
8.1.60.0040.00817.65
8.1.50.0050.00417.59
8.1.40.0000.00817.54
8.1.30.0090.00017.83
8.1.20.0040.00417.68
8.1.10.0050.00317.64
8.1.00.0080.00017.67
8.0.300.0000.00718.77
8.0.290.0040.00416.73
8.0.280.0000.00718.34
8.0.270.0000.00717.23
8.0.260.0030.00317.23
8.0.250.0070.00017.11
8.0.240.0030.00317.14
8.0.230.0000.00917.02
8.0.220.0070.00016.93
8.0.210.0040.00417.00
8.0.200.0030.00317.14
8.0.190.0070.00017.14
8.0.180.0020.00517.07
8.0.170.0000.00717.11
8.0.160.0030.00317.16
8.0.150.0000.00716.91
8.0.140.0040.00417.00
8.0.130.0000.00513.45
8.0.120.0040.00417.13
8.0.110.0030.00516.93
8.0.100.0040.00416.93
8.0.90.0040.00417.02
8.0.80.0030.01317.07
8.0.70.0030.00516.91
8.0.60.0000.00717.13
8.0.50.0060.00316.91
8.0.30.0100.01017.20
8.0.20.0110.01217.42
8.0.10.0000.00717.16
8.0.00.0140.00717.21
7.4.330.0050.00015.55
7.4.320.0030.00316.68
7.4.300.0040.00416.75
7.4.290.0070.00016.78
7.4.280.0050.00316.76
7.4.270.0000.00716.66
7.4.260.0000.00716.78
7.4.250.0000.00716.82
7.4.240.0040.00416.84
7.4.230.0000.00716.54
7.4.220.0030.02116.71
7.4.210.0090.00616.89
7.4.200.0040.00416.86
7.4.160.0100.00716.70
7.4.150.0110.00817.40
7.4.140.0130.00617.86
7.4.130.0130.00416.81
7.4.120.0100.00916.85
7.4.110.0160.00016.79
7.4.100.0120.01216.72
7.4.90.0100.00616.73
7.4.80.0160.00319.39
7.4.70.0080.00816.67
7.4.60.0130.00316.53
7.4.50.0060.00916.75
7.4.40.0110.01216.68
7.4.30.0030.01316.63
7.4.00.0060.00615.42
7.3.330.0020.00213.53
7.3.320.0060.00013.29
7.3.310.0070.00016.53
7.3.300.0060.00316.52
7.3.290.0050.00216.40
7.3.280.0090.01116.54
7.3.270.0170.00317.40
7.3.260.0060.01216.62
7.3.250.0090.00816.73
7.3.240.0100.01316.62
7.3.230.0060.01316.50
7.3.210.0030.01416.53
7.3.200.0130.00316.65
7.3.190.0100.01316.89
7.3.180.0080.00816.50
7.3.170.0060.01416.79
7.3.160.0090.00816.47
7.2.330.0120.00516.61
7.2.320.0120.00616.69
7.2.310.0120.00616.94
7.2.300.0060.01616.55
7.2.290.0130.00516.71
7.2.60.0030.01017.05
7.2.50.0070.00716.89
7.2.00.0060.00919.58
7.1.200.0090.00015.79
7.1.70.0040.00417.35
7.1.60.0210.00315.73
7.1.00.0000.08022.34
7.0.200.0140.00414.75
7.0.120.0070.07722.02
7.0.110.0100.07322.19
7.0.100.0000.06022.09
7.0.90.0100.05722.14
7.0.80.0030.06322.02
7.0.70.0030.06022.07
7.0.60.0170.06722.10
7.0.50.0200.06722.04
7.0.40.0130.06722.07
7.0.30.0130.07021.99
7.0.20.0030.06322.07
7.0.10.0130.05322.06
7.0.00.0030.08322.09
5.6.270.0100.06720.91
5.6.260.0000.06720.84
5.6.250.0030.06321.10
5.6.240.0030.09020.85
5.6.230.0100.05721.02
5.6.220.0100.06021.09
5.6.210.0170.07720.97
5.6.200.0030.09321.09
5.6.190.0100.08021.04
5.6.180.0170.06320.80
5.6.170.0030.06021.00
5.6.160.0200.06321.05
5.6.150.0130.06021.01
5.6.140.0070.07321.08
5.6.130.0100.05020.83
5.6.120.0070.06720.95
5.6.110.0130.05020.82
5.6.100.0070.05720.97
5.6.90.0070.05320.73
5.6.80.0000.06020.18
5.6.70.0070.05020.34
5.6.60.0070.05320.31
5.6.50.0000.06020.47
5.6.40.0070.05320.30
5.6.30.0070.06020.11
5.6.20.0070.06720.41
5.6.10.0030.05320.34
5.6.00.0100.05320.36

preferences:
56.93 ms | 400 KiB | 5 Q