3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = '01:05'; // 65 echo preg_replace_callback('/(\d{2}):(\d{2})/', function($matches) { return $matches[1] * 60 + $matches[2];}, $time);

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.70.0120.00318.58
8.3.60.0070.00718.55
8.3.50.0140.00823.00
8.3.40.0070.00718.78
8.3.30.0090.00619.00
8.3.20.0040.00420.33
8.3.10.0050.00321.77
8.3.00.0150.00019.51
8.2.190.0070.01416.86
8.2.180.0130.00316.60
8.2.170.0110.00422.96
8.2.160.0070.01119.29
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0070.00019.90
8.2.110.0030.01419.37
8.2.100.0120.00018.16
8.2.90.0050.00319.28
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0040.00418.16
8.2.50.0080.00018.10
8.2.40.0040.00420.41
8.2.30.0040.00421.05
8.2.20.0080.00017.96
8.2.10.0000.00718.03
8.2.00.0020.00518.02
8.1.280.0110.00725.92
8.1.270.0070.00023.92
8.1.260.0070.00726.35
8.1.250.0000.00828.09
8.1.240.0030.00623.83
8.1.230.0000.01120.97
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.48
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0050.00318.71
8.1.160.0030.00322.27
8.1.150.0040.00420.70
8.1.140.0050.00219.71
8.1.130.0030.00317.77
8.1.120.0040.00417.60
8.1.110.0000.00817.64
8.1.100.0080.00017.50
8.1.90.0040.00317.62
8.1.80.0040.00417.47
8.1.70.0000.00717.52
8.1.60.0030.00517.74
8.1.50.0000.00817.62
8.1.40.0060.00317.68
8.1.30.0000.00817.76
8.1.20.0080.00017.82
8.1.10.0020.00517.74
8.1.00.0080.00017.55
8.0.300.0030.00519.89
8.0.290.0040.00416.88
8.0.280.0070.00018.47
8.0.270.0030.00317.35
8.0.260.0030.00317.29
8.0.250.0030.00317.09
8.0.240.0070.00017.06
8.0.230.0000.00717.01
8.0.220.0040.00417.04
8.0.210.0000.00817.00
8.0.200.0030.00317.13
8.0.190.0030.00617.10
8.0.180.0030.00317.17
8.0.170.0030.00517.10
8.0.160.0040.00417.09
8.0.150.0000.00717.06
8.0.140.0000.00817.04
8.0.130.0030.00313.54
8.0.120.0050.00317.10
8.0.110.0040.00416.98
8.0.100.0040.00417.09
8.0.90.0020.00516.94
8.0.80.0100.00617.05
8.0.70.0030.00516.94
8.0.60.0030.00517.07
8.0.50.0040.00417.12
8.0.30.0130.00517.42
8.0.20.0110.00917.41
8.0.10.0000.00717.09
8.0.00.0090.00917.17
7.4.330.0030.00315.11
7.4.320.0060.00016.80
7.4.300.0000.00616.73
7.4.290.0040.00416.82
7.4.280.0000.00716.57
7.4.270.0030.00316.72
7.4.260.0030.00616.79
7.4.250.0000.00716.63
7.4.240.0070.00016.63
7.4.230.0000.00716.81
7.4.220.0040.01616.76
7.4.210.0100.01016.73
7.4.200.0080.00016.62
7.4.160.0030.01216.59
7.4.150.0110.00717.40
7.4.140.0110.01117.86
7.4.130.0070.01116.71
7.4.120.0130.00316.65
7.4.110.0100.00716.71
7.4.100.0200.00016.74
7.4.90.0090.00916.80
7.4.80.0130.00319.39
7.4.70.0100.00716.69
7.4.60.0190.00016.59
7.4.50.0060.00916.64
7.4.40.0120.00616.76
7.4.30.0140.00316.55
7.4.00.0100.00715.04
7.3.330.0030.00313.31
7.3.320.0050.00013.43
7.3.310.0000.00816.38
7.3.300.0040.00416.44
7.3.290.0080.00716.36
7.3.280.0080.00816.39
7.3.270.0090.00917.40
7.3.260.0130.00716.45
7.3.250.0080.00916.55
7.3.240.0110.00716.65
7.3.230.0090.00916.45
7.3.210.0120.00616.70
7.3.200.0060.01016.63
7.3.190.0090.01216.77
7.3.180.0090.01216.48
7.3.170.0140.00316.71
7.3.160.0220.00016.54
7.3.00.0060.00316.97
7.2.330.0040.01316.77
7.2.320.0070.01316.83
7.2.310.0090.00916.75
7.2.300.0110.01116.91
7.2.290.0110.00816.68
7.2.130.0000.01117.11
7.2.120.0000.01416.77
7.2.110.0000.01517.26
7.2.100.0000.01117.15
7.2.90.0040.00417.25
7.2.80.0040.00817.24
7.2.70.0030.01317.35
7.2.60.0080.00817.00
7.2.50.0040.00817.00
7.2.40.0040.00717.01
7.2.30.0080.00317.06
7.2.20.0030.01317.20
7.2.10.0090.00317.20
7.2.00.0040.00718.19
7.1.250.0000.01115.90
7.1.240.0060.00316.07
7.1.230.0100.00716.15
7.1.220.0040.00415.61
7.1.210.0060.00616.16
7.1.200.0070.00316.05
7.1.190.0000.01315.92
7.1.180.0040.00716.05
7.1.170.0060.00615.89
7.1.160.0030.01215.70
7.1.150.0040.00816.00
7.1.140.0000.01316.04
7.1.130.0030.01015.68
7.1.120.0030.01016.05
7.1.110.0050.00516.05
7.1.100.0070.00716.02
7.1.90.0030.01016.08
7.1.80.0130.00016.07
7.1.70.0030.00716.67
7.1.60.0000.01217.55
7.1.50.0030.00615.84
7.1.40.0030.01016.07
7.1.30.0030.00915.84
7.1.20.0040.00815.94
7.1.10.0030.00915.92
7.1.00.0030.04319.07
7.0.330.0100.00015.33
7.0.320.0030.01015.61
7.0.310.0070.00315.54
7.0.300.0070.00715.14
7.0.290.0030.01015.35
7.0.280.0030.00715.47
7.0.270.0000.01015.52
7.0.260.0030.00915.52
7.0.250.0090.00315.45
7.0.240.0070.00715.28
7.0.230.0100.00315.76
7.0.220.0070.00715.32
7.0.210.0120.00015.70
7.0.200.0020.00916.20
7.0.190.0030.01015.31
7.0.180.0060.00915.31
7.0.170.0050.00815.28
7.0.160.0070.00715.11
7.0.150.0070.00415.53
7.0.140.0030.00615.60
7.0.130.0040.00415.43
7.0.120.0110.00315.28
7.0.110.0030.01015.58
7.0.100.0030.00515.43
7.0.90.0030.00715.63
7.0.80.0570.03817.52
7.0.70.0120.03417.73
7.0.60.0840.03317.67
7.0.50.0820.02817.87
7.0.40.0780.03816.92
7.0.30.0880.03816.92
7.0.20.0830.03716.90
7.0.10.0650.03316.92
7.0.00.1040.03416.90
5.6.380.0090.00014.50
5.6.370.0030.01014.45
5.6.360.0000.00714.26
5.6.350.0030.00714.02
5.6.340.0060.00614.57
5.6.330.0100.00314.39
5.6.320.0000.01214.35
5.6.310.0070.00014.15
5.6.300.0060.00614.08
5.6.290.0060.00614.23
5.6.280.0030.00614.63
5.6.270.0000.00914.31
5.6.260.0100.00314.27
5.6.250.0060.00614.22
5.6.240.0060.00614.37
5.6.230.0120.02817.30
5.6.220.0110.02817.43
5.6.210.0130.02817.43
5.6.200.0130.03017.84
5.6.190.0150.02717.90
5.6.180.0150.03317.87
5.6.170.0090.03617.71
5.6.160.0100.03517.73
5.6.150.0130.03817.66
5.6.140.0090.03217.69
5.6.130.0100.03417.56
5.6.120.0050.04217.69
5.6.110.0090.03417.68
5.6.100.0110.03317.63
5.6.90.0150.02917.71
5.6.80.0070.03317.48
5.6.70.0150.02717.19
5.6.60.0080.03317.43
5.6.50.0090.03417.29
5.6.40.0080.02917.33
5.6.30.0130.02817.30
5.6.20.0140.02517.40
5.6.10.0050.03817.19
5.6.00.0090.03417.46
5.5.380.0040.00411.18
5.5.370.0030.00911.18
5.5.360.0100.00311.34
5.5.350.0030.00511.35
5.5.340.0080.00311.18
5.5.330.0080.00011.18
5.5.320.0050.00511.19
5.5.310.0060.00311.41
5.5.300.0030.00611.18
5.5.290.0040.00811.42
5.5.280.0030.00911.18
5.5.270.0000.01011.18
5.5.260.0130.00011.18
5.5.250.0040.00411.18
5.5.240.0070.00411.18
5.5.230.0050.00211.22
5.5.220.0040.00911.29
5.5.210.0060.00611.34
5.5.200.0000.01011.20
5.5.190.0000.01111.18
5.5.180.0100.00311.25
5.5.170.0030.00711.21
5.5.160.0030.00611.18
5.5.150.0030.01011.18
5.5.140.0060.00611.18
5.5.130.0030.00711.26
5.5.120.0030.00511.18
5.5.110.0000.01111.18
5.5.100.0030.00611.18
5.5.90.0000.00711.26
5.5.80.0040.00711.28
5.5.70.0030.00911.18
5.5.60.0000.00911.18
5.5.50.0070.00011.18
5.5.40.0080.00011.18
5.5.30.0070.00311.18
5.5.20.0040.00411.18
5.5.10.0030.00911.18
5.5.00.0000.00811.35

preferences:
30.6 ms | 401 KiB | 5 Q