3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testString = '2.1.0'; preg_match('/(\d\.?)+/', $testString, $testResult1); preg_match('/\d.\d.\d/', $testString, $testResult2); var_dump($testResult1); var_dump($testResult2);

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.0060.01516.62
8.3.50.0110.00416.54
8.3.40.0110.00418.84
8.3.30.0120.00318.57
8.3.20.0000.00820.18
8.3.10.0080.00023.47
8.3.00.0020.00523.48
8.2.180.0070.00718.41
8.2.170.0040.01122.96
8.2.160.0030.01020.47
8.2.150.0030.00625.66
8.2.140.0080.00024.66
8.2.130.0040.00422.33
8.2.120.0070.00026.35
8.2.110.0070.00419.30
8.2.100.0060.00618.05
8.2.90.0090.00018.03
8.2.80.0030.00617.97
8.2.70.0060.00317.91
8.2.60.0000.01017.91
8.2.50.0000.00818.10
8.2.40.0030.00620.59
8.2.30.0000.00820.89
8.2.20.0040.00417.98
8.2.10.0040.00417.89
8.2.00.0000.00818.07
8.1.280.0120.00325.92
8.1.270.0000.00823.78
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00619.09
8.1.230.0080.00420.89
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0100.00017.48
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0050.00518.84
8.1.160.0040.00418.83
8.1.150.0080.00020.70
8.1.140.0040.00417.67
8.1.130.0030.00617.52
8.1.120.0000.00717.60
8.1.110.0080.00017.57
8.1.100.0030.00617.47
8.1.90.0100.00017.56
8.1.80.0050.00617.46
8.1.70.0000.00717.54
8.1.60.0040.00417.66
8.1.50.0000.00817.59
8.1.40.0060.00317.61
8.1.30.0000.00817.75
8.1.20.0050.00317.73
8.1.10.0040.00417.55
8.1.00.0040.00417.62
8.0.300.0050.00319.77
8.0.290.0080.00316.63
8.0.280.0030.00318.27
8.0.270.0030.00316.89
8.0.260.0060.00316.78
8.0.250.0000.00717.03
8.0.240.0080.00017.02
8.0.230.0040.00416.97
8.0.220.0000.00716.98
8.0.210.0030.00316.95
8.0.200.0060.00016.90
8.0.190.0000.00916.93
8.0.180.0080.00017.01
8.0.170.0040.00417.01
8.0.160.0000.00816.94
8.0.150.0000.00716.84
8.0.140.0030.00616.90
8.0.130.0030.00313.39
8.0.120.0020.00516.94
8.0.110.0000.00716.95
8.0.100.0030.00616.82
8.0.90.0040.00416.86
8.0.80.0110.00416.95
8.0.70.0070.00017.00
8.0.60.0050.00316.93
8.0.50.0000.00716.91
8.0.30.0090.01117.16
8.0.20.0130.00917.40
8.0.10.0070.00016.91
8.0.00.0060.01216.72
7.4.330.0050.00016.91
7.4.320.0060.00016.67
7.4.300.0000.00716.82
7.4.290.0000.00716.64
7.4.280.0050.00316.57
7.4.270.0030.00316.70
7.4.260.0040.00416.64
7.4.250.0040.00416.66
7.4.240.0040.00316.64
7.4.230.0040.00416.68
7.4.220.0030.01816.58
7.4.210.0110.00716.79
7.4.200.0050.00316.84
7.4.160.0120.00916.68
7.4.150.0140.00417.40
7.4.140.0090.01017.86
7.4.130.0100.01316.83
7.4.120.0110.01016.64
7.4.110.0070.01016.59
7.4.100.0100.00716.59
7.4.90.0080.01016.68
7.4.80.0060.01319.39
7.4.70.0080.00916.98
7.4.60.0110.00616.62
7.4.50.0070.01016.43
7.4.40.0050.01116.48
7.4.30.0100.00716.37
7.4.00.0070.00715.19
7.3.330.0000.00513.20
7.3.320.0050.00013.11
7.3.310.0030.00316.34
7.3.300.0000.00716.34
7.3.290.0000.00616.20
7.3.280.0080.00916.30
7.3.270.0060.01217.40
7.3.260.0090.00716.50
7.3.250.0110.00916.65
7.3.240.0110.00616.50
7.3.230.0120.00616.35
7.3.210.0090.00916.31
7.3.200.0140.00716.34
7.3.190.0120.00416.48
7.3.180.0060.00916.49
7.3.170.0050.01116.39
7.3.160.0080.00916.27
7.2.330.0120.00616.57
7.2.320.0040.01316.45
7.2.310.0100.01116.50
7.2.300.0060.01016.48
7.2.290.0130.01316.66
7.2.60.0040.01116.67
7.1.200.0050.00515.67
7.1.110.0310.01116.37
7.1.100.0430.00716.16
7.1.90.0230.00916.57
7.1.80.0340.01116.36
7.1.70.0240.01915.54
7.1.60.0480.01133.38
7.1.50.0470.01433.16
7.1.40.0500.01332.53
7.1.30.0530.01032.74
7.1.20.1050.01032.99
7.1.10.0370.00315.11
7.1.00.0300.01215.27
7.0.250.0290.01315.79
7.0.240.0600.01015.94
7.0.230.0300.01415.93
7.0.220.0300.01215.86
7.0.210.0250.01615.00
7.0.200.0310.01014.94
7.0.190.0270.01414.99
7.0.180.0290.01314.62
7.0.170.0350.01214.55
7.0.160.0330.00314.63
7.0.150.0310.00714.71
7.0.140.0330.01314.59
7.0.130.0230.00714.75
7.0.120.0240.02014.61
7.0.110.0280.01514.66
7.0.100.0510.00914.47
7.0.90.0260.00714.62
7.0.80.0260.01314.61
7.0.70.0320.00614.49
7.0.60.0150.01214.60
7.0.50.0290.01114.64
7.0.40.0250.00714.82
7.0.30.0330.00714.89
7.0.20.0350.01014.84
7.0.10.0270.01714.83
7.0.00.0300.01814.84

preferences:
64.74 ms | 400 KiB | 5 Q