3v4l.org

run code in 300+ PHP versions simultaneously
<?php $types = ['auto', 'int', 'float', 'string', 'html', 'list', 'pattern']; // echo '('.implode('|', $types).')'; $str = 'string(1;25)'; preg_match('/('.implode('|', $types).')\((.*?)\)/i', $str, $matches); var_dump($matches);

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.0030.01516.50
8.3.50.0110.00416.36
8.3.40.0070.00718.75
8.3.30.0110.00418.88
8.3.20.0050.00321.87
8.3.10.0040.00423.65
8.3.00.0030.00519.67
8.2.180.0150.00616.50
8.2.170.0090.00922.96
8.2.160.0160.00320.52
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00420.29
8.2.120.0040.00426.35
8.2.110.0040.00422.25
8.2.100.0120.00017.84
8.2.90.0080.00019.17
8.2.80.0080.00017.97
8.2.70.0090.00017.63
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0050.00220.63
8.2.30.0070.00021.01
8.2.20.0040.00418.07
8.2.10.0040.00418.00
8.2.00.0040.00418.14
8.1.280.0070.01425.92
8.1.270.0000.00819.06
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0040.00423.80
8.1.230.0090.00322.20
8.1.220.0000.00917.74
8.1.210.0000.00918.77
8.1.200.0030.00717.48
8.1.190.0030.00617.47
8.1.180.0040.00418.10
8.1.170.0060.00318.80
8.1.160.0070.00019.10
8.1.150.0080.00018.87
8.1.140.0040.00419.48
8.1.130.0050.00220.68
8.1.120.0050.00317.63
8.1.110.0000.00717.55
8.1.100.0000.00717.63
8.1.90.0000.00717.55
8.1.80.0050.00217.50
8.1.70.0030.00317.65
8.1.60.0000.00817.68
8.1.50.0030.00617.66
8.1.40.0030.00617.68
8.1.30.0000.00817.76
8.1.20.0050.00317.87
8.1.10.0030.00517.70
8.1.00.0060.00317.52
8.0.300.0030.00518.77
8.0.290.0040.00416.88
8.0.280.0000.00718.52
8.0.270.0070.00017.29
8.0.260.0040.00418.95
8.0.250.0000.00717.01
8.0.240.0030.00317.02
8.0.230.0000.00717.09
8.0.220.0030.00317.00
8.0.210.0070.00016.91
8.0.200.0000.00717.14
8.0.190.0060.00317.16
8.0.180.0000.00816.95
8.0.170.0040.00416.98
8.0.160.0090.00317.11
8.0.150.0000.00816.91
8.0.140.0040.00417.02
8.0.130.0000.00713.49
8.0.120.0030.00616.84
8.0.110.0000.00717.01
8.0.100.0000.00817.00
8.0.90.0000.00717.11
8.0.80.0120.00317.05
8.0.70.0000.00816.99
8.0.60.0040.00416.83
8.0.50.0050.00316.82
8.0.30.0130.01517.18
8.0.20.0110.00817.42
8.0.10.0070.00017.06
8.0.00.0160.00316.76
7.4.330.0000.00615.55
7.4.320.0000.00616.75
7.4.300.0030.00316.63
7.4.290.0000.00716.66
7.4.280.0000.00816.75
7.4.270.0000.00716.62
7.4.260.0030.00716.73
7.4.250.0070.00016.61
7.4.240.0000.00716.61
7.4.230.0000.00816.54
7.4.220.0130.01016.68
7.4.210.0030.01216.71
7.4.200.0000.00716.78
7.4.160.0110.01016.73
7.4.150.0100.00717.40
7.4.140.0090.00917.86
7.4.130.0180.00916.60
7.4.120.0120.00816.63
7.4.110.0120.00916.77
7.4.100.0060.01216.55
7.4.90.0120.00416.57
7.4.80.0200.00019.39
7.4.70.0100.00716.55
7.4.60.0120.00616.63
7.4.50.0030.01316.70
7.4.40.0160.00016.76
7.4.30.0180.00616.58
7.4.00.0070.00715.00
7.3.330.0060.00013.23
7.3.320.0000.00613.23
7.3.310.0050.00216.41
7.3.300.0030.00316.21
7.3.290.0120.00316.36
7.3.280.0060.01016.35
7.3.270.0140.00417.40
7.3.260.0170.00416.51
7.3.250.0120.00616.52
7.3.240.0090.00816.74
7.3.230.0110.00616.58
7.3.210.0120.00616.46
7.3.200.0130.00316.70
7.3.190.0120.00916.63
7.3.180.0090.01216.68
7.3.170.0170.00016.39
7.3.160.0070.01016.41
7.2.330.0190.00016.62
7.2.320.0060.01216.62
7.2.310.0090.00616.72
7.2.300.0110.00616.63
7.2.290.0030.01416.73
7.2.80.0040.00716.63
7.2.60.0040.01417.04
7.2.50.0060.00617.16
7.1.200.0000.01215.98
7.1.70.0040.00417.33
7.1.60.1430.01333.30
7.1.50.0400.02032.95
7.1.40.1000.01332.89
7.1.30.0570.01332.74
7.1.20.1100.01332.95
7.1.10.1070.01714.81
7.1.00.0970.01315.03
7.0.200.1570.00714.93
7.0.190.0530.01714.97
7.0.180.1130.01014.54
7.0.170.1170.01014.63
7.0.160.1630.01014.68
7.0.150.0930.00714.48
7.0.140.1030.00714.63
7.0.130.1630.01714.90
7.0.120.1000.01314.75
7.0.110.1200.01314.66
7.0.100.1270.01014.59
7.0.90.1030.01014.47
7.0.80.1000.01014.71
7.0.70.1130.01014.68
7.0.60.1230.01314.41
7.0.50.1000.01014.50
7.0.40.1130.00714.81
7.0.30.0970.01315.02
7.0.20.2330.01314.68
7.0.10.2070.01014.98
7.0.00.0800.01014.56

preferences:
59.26 ms | 401 KiB | 5 Q