3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = ['1.2', '1.0', '2.11']; foreach ($tests as $test) { sscanf($test, '%d.%d', $years, $months); $months += $years * 12; echo $months . 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.0120.00720.23
8.4.110.0040.00522.24
8.4.100.0110.00917.67
8.4.90.0110.00920.38
8.4.80.0060.00318.85
8.4.70.0140.00518.78
8.4.60.0070.00219.02
8.4.50.0130.00818.55
8.4.40.0080.01118.50
8.4.30.0130.00620.58
8.4.20.0120.00817.63
8.4.10.0000.00819.38
8.3.250.0030.00518.90
8.3.240.0080.00516.65
8.3.230.0120.00716.80
8.3.220.0070.00919.22
8.3.210.0100.00818.36
8.3.200.0030.00816.70
8.3.190.0090.00917.21
8.3.180.0080.01018.75
8.3.170.0150.00419.20
8.3.160.0090.00918.93
8.3.150.0040.01117.27
8.3.140.0000.01718.82
8.3.130.0110.00016.59
8.3.120.0030.00618.79
8.3.110.0000.01120.94
8.3.100.0080.00816.39
8.3.90.0090.00926.77
8.3.80.0090.00017.97
8.3.70.0040.01116.63
8.3.60.0180.00416.88
8.3.50.0090.00916.60
8.3.40.0100.01022.14
8.3.30.0030.01021.74
8.3.20.0050.00224.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0090.00920.34
8.2.280.0070.00118.34
8.2.270.0160.00318.56
8.2.260.0080.00616.89
8.2.250.0090.00016.43
8.2.240.0060.00920.71
8.2.230.0040.00422.58
8.2.220.0050.00337.54
8.2.210.0030.00626.77
8.2.200.0090.00018.16
8.2.190.0090.00916.58
8.2.180.0110.00716.38
8.2.170.0090.00618.82
8.2.160.0130.00322.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0000.00721.07
8.2.110.0060.01322.28
8.2.100.0150.00720.98
8.2.90.0240.00718.95
8.2.80.0130.01018.89
8.2.70.0360.00318.60
8.2.60.0280.00018.80
8.2.50.0160.00918.89
8.2.40.0090.00518.95
8.2.30.0040.00818.65
8.2.20.0110.00318.61
8.2.10.0140.00018.89
8.2.00.0050.00919.22
8.1.330.0130.00522.04
8.1.320.0070.00415.84
8.1.310.0070.01018.46
8.1.300.0070.00719.65
8.1.290.0040.00430.84
8.1.280.0110.00325.92
8.1.270.0000.00823.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00918.45
8.1.230.0120.00318.52
8.1.220.0050.00818.39
8.1.210.0040.00919.94
8.1.200.0110.00318.60
8.1.190.0080.00418.44
8.1.180.0120.00318.25
8.1.170.0110.00318.56
8.1.160.0080.00418.68
8.1.150.0040.00820.31
8.1.140.0130.00018.44
8.1.130.0110.01818.51
8.1.120.0140.00018.57
8.1.110.0110.00318.54
8.1.100.0090.00618.33
8.1.90.0100.01418.39
8.1.80.0130.01018.44
8.1.70.0080.00318.84
8.1.60.0130.00318.41
8.1.50.0130.00318.57
8.1.40.0050.00518.89
8.1.30.0090.00318.77
8.1.20.0160.00018.63
8.1.10.0120.00318.69
8.1.00.0110.00418.54
8.0.300.0080.00817.76
8.0.290.0130.00317.68
8.0.280.0060.00617.77
8.0.270.0120.00017.89
8.0.260.0050.01417.88
8.0.250.0140.00317.63
8.0.240.0050.00517.86
8.0.230.0080.00318.20
8.0.220.0030.01017.94
8.0.210.0090.00417.75
8.0.200.0110.00317.80
8.0.190.0140.00317.89
8.0.180.0130.00017.81
8.0.170.0120.00017.93
8.0.160.0090.00617.83
8.0.150.0140.00017.67
8.0.140.0120.00317.48
8.0.130.0000.01218.18
8.0.120.0110.00417.82
8.0.110.0080.00517.83
8.0.100.0100.00519.61
8.0.90.0120.00417.79
8.0.80.0130.00317.83
8.0.70.0080.00617.78
8.0.60.0110.00417.70
8.0.50.0130.00317.72
8.0.30.0140.00017.82
8.0.20.0120.00417.63
8.0.10.0120.00320.00

preferences:
28.11 ms | 403 KiB | 5 Q