3v4l.org

run code in 300+ PHP versions simultaneously
<?php $edition[] = 'Vol.123'; $edition[] = 'Edition 1920'; $edition[] = 'Volume 951'; $edition[] = 'Release A20'; $edition[] = 'Unknown data'; $editionFormats = ['Vol','Volume','Edition','Release']; $pattern = implode('|', $editionFormats); foreach ($edition as $e) { if (preg_match('/' . $pattern. '/', $e)) { echo $e . ' matches' . PHP_EOL; } else { echo $e . ' NOT matches' . PHP_EOL; } }

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.30.0090.00817.62
8.5.20.0100.00816.94
8.5.10.0090.01016.95
8.5.00.0110.01120.41
8.4.180.0140.00819.88
8.4.170.0140.00820.39
8.4.160.0130.01122.36
8.4.150.0070.00516.93
8.4.140.0130.00818.00
8.4.130.0090.01217.79
8.4.120.0150.00524.24
8.4.110.0130.00418.48
8.4.100.0120.00917.85
8.4.90.0060.00624.21
8.4.80.0100.01018.89
8.4.70.0120.00818.91
8.4.60.0140.00920.80
8.4.50.0110.01020.40
8.4.40.0090.00617.64
8.4.30.0120.00920.59
8.4.20.0070.01317.81
8.4.10.0050.00322.37
8.3.300.0110.01020.75
8.3.290.0150.00620.95
8.3.280.0110.00918.64
8.3.270.0100.00916.55
8.3.260.0130.00617.16
8.3.250.0090.01018.95
8.3.240.0100.00917.36
8.3.230.0120.00616.80
8.3.220.0040.00419.01
8.3.210.0090.00616.63
8.3.200.0050.00416.57
8.3.190.0110.00817.33
8.3.180.0090.01116.71
8.3.170.0120.00617.14
8.3.160.0120.00618.65
8.3.150.0070.01116.75
8.3.140.0090.00017.37
8.3.130.0000.00918.56
8.3.120.0090.00620.60
8.3.110.0030.00620.94
8.3.100.0030.00624.06
8.3.90.0040.01126.77
8.3.80.0030.00616.75
8.3.70.0130.00316.75
8.3.60.0030.01218.43
8.3.50.0120.00524.54
8.3.40.0060.01018.96
8.3.30.0070.00718.88
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.300.0150.00922.34
8.2.290.0130.00518.57
8.2.280.0060.00318.34
8.2.270.0040.01416.98
8.2.260.0000.00818.45
8.2.250.0000.00818.43
8.2.240.0070.01317.00
8.2.230.0090.00022.58
8.2.220.0030.00537.54
8.2.210.0040.01526.77
8.2.200.0030.00616.88
8.2.190.0040.01116.73
8.2.180.0070.00725.92
8.2.170.0040.01819.07
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00819.90
8.2.110.0060.00319.45
8.2.100.0060.00619.82
8.2.90.0080.00017.75
8.2.80.0040.00419.04
8.2.70.0040.00417.75
8.2.60.0000.00817.50
8.2.50.0040.00418.05
8.2.40.0090.00018.16
8.2.30.0040.00418.05
8.2.20.0040.00418.06
8.2.10.0040.00419.22
8.2.00.0040.00419.45
8.1.340.0120.01017.82
8.1.330.0090.00818.59
8.1.320.0110.01016.30
8.1.310.0120.00618.54
8.1.300.0040.01119.87
8.1.290.0040.00418.88
8.1.280.0150.00025.92
8.1.270.0000.00823.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00621.04
8.1.230.0110.00019.00
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0000.00817.36
8.1.190.0030.00517.35
8.1.180.0080.00018.10
8.1.170.0000.00818.83
8.1.160.0070.00018.91
8.1.150.0000.00818.87
8.1.140.0040.00418.91
8.1.130.0000.00720.09
8.1.120.0000.00717.59
8.1.110.0000.00817.54
8.1.100.0040.00417.45
8.1.90.0000.00717.66
8.1.80.0030.00617.49
8.1.70.0030.00317.66
8.1.60.0040.00417.74
8.1.50.0030.00617.57
8.1.40.0050.00517.68
8.1.30.0000.00817.71
8.1.20.0000.00817.79
8.1.10.0040.00417.60
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0030.00318.46
8.0.270.0030.00318.19
8.0.260.0000.00718.42
8.0.250.0070.00017.11
8.0.240.0030.00317.09
8.0.230.0080.00017.10
8.0.220.0070.00016.99
8.0.210.0030.00317.06
8.0.200.0040.00417.09
8.0.190.0040.00416.98
8.0.180.0040.00417.07
8.0.170.0040.00416.93
8.0.160.0020.00517.04
8.0.150.0000.00816.93
8.0.140.0050.00216.91
8.0.130.0000.00613.52
8.0.120.0050.00317.03
8.0.110.0000.00717.08
8.0.100.0000.00816.87
8.0.90.0000.00717.02
8.0.80.0110.01017.02
8.0.70.0030.00517.04
8.0.60.0030.00517.11
8.0.50.0040.00417.09
8.0.30.0080.00817.15
8.0.20.0110.01117.25
8.0.10.0040.00417.17
8.0.00.0120.00616.98
7.4.330.0000.00515.55
7.4.320.0000.00616.80
7.4.300.0000.00716.62
7.4.290.0080.00016.71
7.4.280.0040.00716.73
7.4.270.0040.00416.64
7.4.260.0030.00313.43
7.4.250.0000.00716.83
7.4.240.0030.00316.77
7.4.230.0030.00316.80
7.4.220.0020.00616.66
7.4.210.0080.01016.72
7.4.200.0000.00716.70
7.4.130.0110.00816.81
7.4.120.0090.00916.46
7.4.110.0120.00616.86
7.4.100.0090.01216.79
7.4.90.0100.00716.56
7.4.80.0060.01219.39
7.4.70.0060.00916.64
7.4.60.0170.00016.81
7.4.50.0140.00416.75
7.4.40.0100.00616.79
7.4.30.0030.01416.60
7.4.20.0150.00916.70
7.4.10.0100.00716.41
7.4.00.0110.00516.55
7.3.330.0070.00016.41
7.3.320.0030.00313.22
7.3.310.0000.00716.25
7.3.300.0070.00016.44
7.3.290.0060.00816.44
7.3.280.0070.00716.36
7.3.260.0080.01316.41
7.3.240.0070.01016.61
7.3.230.0090.01216.45
7.3.210.0100.01416.87
7.3.200.0070.01716.74
7.3.190.0050.01116.71
7.3.180.0140.00916.65
7.3.170.0080.00816.68
7.3.160.0040.01516.52
7.3.150.0030.01416.41
7.3.140.0120.00516.56
7.3.130.0140.00416.88
7.3.120.0120.00316.68
7.3.110.0100.00616.76
7.3.100.0030.01316.36
7.3.90.0130.00416.79
7.3.80.0130.00316.81
7.3.70.0040.01316.61
7.3.60.0100.00716.70
7.3.50.0070.01016.50
7.3.40.0060.01016.57
7.3.30.0090.00616.59
7.3.20.0110.01116.54
7.3.10.0060.01216.66
7.3.00.0080.00816.56
7.2.330.0060.00916.71
7.2.310.0140.00416.78
7.2.300.0080.01616.83
7.2.290.0090.00916.71
7.2.280.0040.01416.75
7.2.270.0170.00516.77
7.2.260.0140.00316.66
7.2.250.0060.01016.75
7.2.240.0150.00416.69
7.2.230.0030.01516.77
7.2.220.0140.00416.86
7.2.210.0070.01016.94
7.2.200.0070.01016.75
7.2.190.0110.00616.71
7.2.180.0120.00716.77
7.2.170.0150.00816.80
7.2.160.0110.00716.84
7.2.150.0090.01216.84
7.2.140.0070.01116.86
7.2.130.0070.01016.99
7.2.120.0030.01316.75
7.2.110.0170.00316.90
7.2.100.0100.01016.79
7.2.90.0110.00716.67
7.2.80.0040.01316.82
7.2.70.0110.00716.86
7.2.60.0140.00516.80
7.2.50.0060.01416.93
7.2.40.0120.00616.89
7.2.30.0100.00716.91
7.2.20.0130.00316.79
7.2.10.0070.01016.71
7.2.00.0110.01116.80

preferences:
61.2 ms | 1500 KiB | 5 Q