3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = ['0m12.345s', '2m34.567s']; foreach ($tests as $test) { sscanf($test, '%dm%f', $minutes, $seconds); $seconds += $minutes * 60; echo $seconds . 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.4.120.0050.00325.79
8.4.110.0040.00618.75
8.4.100.0100.01217.43
8.4.90.0120.00917.70
8.4.80.0060.00517.63
8.4.70.0120.00919.42
8.4.60.0100.00618.89
8.4.50.0110.00518.65
8.4.40.0130.00618.64
8.4.30.0150.00322.33
8.4.20.0040.01817.93
8.4.10.0160.00319.70
8.3.250.0130.00518.86
8.3.240.0100.00916.54
8.3.230.0120.00716.54
8.3.220.0090.00816.93
8.3.210.0120.00716.61
8.3.200.0090.00616.34
8.3.190.0110.00817.09
8.3.180.0130.00818.76
8.3.170.0150.00320.55
8.3.160.0070.01117.19
8.3.150.0190.00017.42
8.3.140.0040.00416.44
8.3.130.0060.00316.90
8.3.120.0090.00020.81
8.3.110.0000.00816.65
8.3.100.0060.00316.86
8.3.90.0080.00026.77
8.3.80.0060.00318.26
8.3.70.0060.01018.43
8.3.60.0130.00616.75
8.3.50.0070.00716.68
8.3.40.0100.00322.00
8.3.30.0120.00621.64
8.3.20.0080.00024.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.290.0120.00620.55
8.2.280.0110.00818.20
8.2.270.0080.00817.35
8.2.260.0040.00416.79
8.2.250.0040.00716.70
8.2.240.0060.00317.32
8.2.230.0030.01320.94
8.2.220.0060.00324.06
8.2.210.0070.00426.77
8.2.200.0100.00018.27
8.2.190.0170.00318.29
8.2.180.0130.01325.92
8.2.170.0070.01018.89
8.2.160.0030.01022.96
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00420.66
8.2.110.0060.01320.52
8.2.100.0170.00319.18
8.2.90.0260.00618.91
8.2.80.0220.00918.77
8.2.70.0250.00318.63
8.2.60.0320.00418.68
8.2.50.0210.00618.84
8.2.40.0200.00319.00
8.2.30.0150.00618.88
8.2.20.0120.01218.67
8.2.10.0200.00718.66
8.2.00.0190.00619.04
8.1.330.0100.00816.63
8.1.320.0050.00315.78
8.1.310.0000.00816.50
8.1.300.0120.00618.55
8.1.290.0030.00630.84
8.1.280.0030.01025.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0140.00018.63
8.1.230.0090.00618.67
8.1.220.0100.00318.63
8.1.210.0140.00019.95
8.1.200.0160.00618.34
8.1.190.0150.00618.27
8.1.180.0070.00718.48
8.1.170.0140.01018.43
8.1.160.0140.00718.48
8.1.150.0180.00320.43
8.1.140.0090.00418.46
8.1.130.0130.00018.47
8.1.120.0210.00318.54
8.1.110.0170.00618.43
8.1.100.0240.00318.43
8.1.90.0110.01418.39
8.1.80.0110.00718.51
8.1.70.0030.00818.57
8.1.60.0150.00018.75
8.1.50.0130.00318.64
8.1.40.0130.00018.94
8.1.30.0090.00618.80
8.1.20.0130.00318.73
8.1.10.0090.00418.75
8.1.00.0060.00618.49
8.0.300.0150.00017.95
8.0.290.0090.00617.74
8.0.280.0100.00317.81
8.0.270.0100.00317.80
8.0.260.0120.00317.70
8.0.250.0140.00017.88
8.0.240.0080.00417.87
8.0.230.0100.00218.31
8.0.220.0150.00017.82
8.0.210.0090.00517.88
8.0.200.0110.00417.82
8.0.190.0120.00317.91
8.0.180.0140.00017.87
8.0.170.0120.00017.88
8.0.160.0140.00017.88
8.0.150.0110.00417.75
8.0.140.0070.00717.83
8.0.130.0090.00318.25
8.0.120.0120.00417.74
8.0.110.0100.00317.91
8.0.100.0150.00017.75
8.0.90.0120.00417.73
8.0.80.0080.00817.82
8.0.70.0150.00017.74
8.0.60.0090.00617.82
8.0.50.0090.00617.88
8.0.30.0150.00017.88
8.0.20.0120.00418.02
8.0.10.0160.00018.18

preferences:
27.59 ms | 403 KiB | 5 Q