3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tags = "-10 ayanami_rei"; preg_match_all('/-\d+/', $tags, $matches); var_dump($matches); 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.60.0110.01116.74
8.3.50.0090.01322.13
8.3.40.0040.01818.96
8.3.30.0080.00818.92
8.3.20.0040.00418.84
8.3.10.0030.00621.73
8.3.00.0000.00821.73
8.2.180.0100.00717.00
8.2.170.0110.00722.96
8.2.160.0100.00322.11
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0000.00719.95
8.2.120.0000.00826.35
8.2.110.0100.00020.47
8.2.100.0040.00818.03
8.2.90.0000.00819.23
8.2.80.0000.00817.97
8.2.70.0000.00917.88
8.2.60.0080.00017.93
8.2.50.0050.00818.10
8.2.40.0070.00020.42
8.2.30.0070.00419.29
8.2.20.0060.00318.11
8.2.10.0050.00317.96
8.2.00.0080.00017.87
8.1.280.0080.00825.92
8.1.270.0040.00422.19
8.1.260.0030.00628.09
8.1.250.0050.00328.09
8.1.240.0060.00321.18
8.1.230.0110.00019.16
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.38
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0040.00418.82
8.1.160.0040.00423.91
8.1.150.0070.00018.87
8.1.140.0050.00219.55
8.1.130.0000.00717.70
8.1.120.0050.00317.61
8.1.110.0000.00817.50
8.1.100.0070.00017.57
8.1.90.0000.00817.59
8.1.80.0000.00817.57
8.1.70.0080.00017.58
8.1.60.0100.00017.74
8.1.50.0000.00917.68
8.1.40.0000.01017.61
8.1.30.0080.00017.87
8.1.20.0040.00417.83
8.1.10.0040.00417.72
8.1.00.0050.00317.57
8.0.300.0050.00220.20
8.0.290.0040.00417.00
8.0.280.0040.00418.42
8.0.270.0030.00317.27
8.0.260.0050.00317.11
8.0.250.0000.00717.02
8.0.240.0000.00717.11
8.0.230.0030.00317.16
8.0.220.0030.00317.06
8.0.210.0030.00617.07
8.0.200.0040.00417.01
8.0.190.0040.00417.02
8.0.180.0000.00716.98
8.0.170.0030.00617.06
8.0.160.0000.00716.92
8.0.150.0040.00416.89
8.0.140.0040.00417.04
8.0.130.0050.00013.42
8.0.120.0030.00617.01
8.0.110.0040.00416.87
8.0.100.0000.00716.86
8.0.90.0030.00516.95
8.0.80.0060.01617.13
8.0.70.0050.00216.96
8.0.60.0070.00016.89
8.0.50.0080.00016.91
8.0.30.0120.00617.27
8.0.20.0120.00817.40
8.0.10.0030.00517.18
8.0.00.0090.01016.96
7.4.330.0000.00615.55
7.4.320.0030.00316.86
7.4.300.0060.00016.83
7.4.290.0040.00416.73
7.4.280.0040.00416.82
7.4.270.0070.00016.73
7.4.260.0040.00416.85
7.4.250.0070.00016.71
7.4.240.0030.00316.81
7.4.230.0030.00316.70
7.4.220.0040.01516.80
7.4.210.0110.00516.82
7.4.200.0000.00716.65
7.4.160.0070.00916.70
7.4.150.0120.00617.40
7.4.140.0120.00717.86
7.4.130.0080.01016.76
7.4.120.0090.01116.85
7.4.110.0090.00916.70
7.4.100.0130.01016.79
7.4.90.0100.00716.74
7.4.80.0050.01319.39
7.4.70.0030.01316.54
7.4.60.0060.01316.68
7.4.50.0100.00316.65
7.4.40.0110.00616.89
7.4.30.0170.00016.87
7.4.00.0060.00815.27
7.3.330.0020.00213.30
7.3.320.0000.00613.49
7.3.310.0050.00216.61
7.3.300.0040.00416.58
7.3.290.0040.00416.36
7.3.280.0090.01216.53
7.3.270.0100.00717.40
7.3.260.0120.01116.62
7.3.250.0090.00816.70
7.3.240.0120.00716.61
7.3.230.0240.00016.63
7.3.210.0100.00616.56
7.3.200.0080.00816.71
7.3.190.0130.00616.42
7.3.180.0050.01116.72
7.3.170.0110.01116.64
7.3.160.0080.00816.71
7.3.120.0090.00715.08
7.3.110.0050.01114.98
7.3.100.0110.00715.17
7.3.90.0050.01115.08
7.3.80.0130.00214.94
7.3.70.0000.01114.95
7.3.60.0070.00915.08
7.3.50.0050.00715.07
7.3.40.0040.01115.02
7.3.30.0060.00615.18
7.3.20.0070.00716.71
7.3.10.0040.00816.86
7.3.00.0060.00816.74
7.2.330.0110.00816.64
7.2.320.0120.01216.63
7.2.310.0030.01316.89
7.2.300.0040.01516.71
7.2.290.0070.01316.71
7.2.250.0110.00715.00
7.2.240.0050.01415.31
7.2.230.0080.00515.21
7.2.220.0050.00515.30
7.2.210.0050.01015.18
7.2.200.0060.00815.00
7.2.190.0060.00815.30
7.2.180.0060.01015.30
7.2.170.0040.00415.19
7.2.160.0100.00315.13
7.2.150.0030.01317.07
7.2.140.0040.01117.06
7.2.130.0050.00616.95
7.2.120.0050.00517.09
7.2.110.0050.00816.90
7.2.100.0050.00917.00
7.2.90.0050.00717.04
7.2.80.0090.00717.09
7.2.70.0060.00917.17
7.2.60.0060.00917.07
7.2.50.0060.00816.97
7.2.40.0070.00417.01
7.2.30.0060.00717.13
7.2.20.0050.00917.04
7.2.10.0040.00916.97
7.2.00.0050.00717.13
7.1.330.0070.00716.06
7.1.320.0040.00816.00
7.1.310.0060.00816.01
7.1.300.0030.01016.13
7.1.290.0060.00715.69
7.1.280.0050.00815.80
7.1.270.0050.00516.00
7.1.260.0090.00316.17
7.1.250.0020.00915.82
7.1.70.0030.00317.51
7.1.60.0280.00715.49
7.1.00.0100.07322.55
7.0.200.0030.00614.91
7.0.120.0100.08022.05
7.0.110.0070.07322.16
7.0.100.0130.05322.07
7.0.90.0070.06322.04
7.0.80.0170.05722.06
7.0.70.0100.07322.04
7.0.60.0130.07021.97
7.0.50.0130.06722.04
7.0.40.0100.08022.12
7.0.30.0100.06722.11
7.0.20.0130.06021.98
7.0.10.0170.06322.03
7.0.00.0170.07022.10
5.6.270.0030.06021.09
5.6.260.0230.06321.13
5.6.250.0070.05721.08
5.6.240.0070.06720.82
5.6.230.0130.07321.02
5.6.220.0100.05721.02
5.6.210.0130.07320.68
5.6.200.0170.07020.93
5.6.190.0070.06020.82
5.6.180.0170.05321.04
5.6.170.0130.06021.04
5.6.160.0200.07021.01
5.6.150.0100.07721.00
5.6.140.0200.05320.75
5.6.130.0070.06720.92
5.6.120.0200.04720.80
5.6.110.0200.05720.74
5.6.100.0100.06021.07
5.6.90.0070.08320.81
5.6.80.0100.05720.39
5.6.70.0100.05720.30
5.6.60.0130.05020.31
5.6.50.0170.04020.18
5.6.40.0100.05320.21
5.6.30.0070.05320.11
5.6.20.0030.06020.41
5.6.10.0230.05020.24
5.6.00.0130.06720.38

preferences:
31.79 ms | 401 KiB | 5 Q