3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getValueInBytes($input) { // see: http://www.php.net/manual/en/function.ini-get.php $input = trim($input); $last = strtolower($input[strlen($input) - 1]); $numericInput = (float) substr($input, 0, -1); switch ($last) { case 'g': $numericInput *= 1024; case 'm': $numericInput *= 1024; case 'k': $numericInput *= 1024; return $numericInput; } return $input; } echo getValueInBytes(-1);

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.0110.00718.30
8.3.50.0210.00018.29
8.3.40.0070.01118.50
8.3.30.0080.00818.58
8.3.20.0070.00019.22
8.3.10.0040.00419.28
8.3.00.0040.00423.65
8.2.180.0180.00718.41
8.2.170.0110.00722.96
8.2.160.0080.00619.04
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0030.00521.04
8.2.120.0080.00026.35
8.2.110.0040.00422.14
8.2.100.0030.00917.91
8.2.90.0050.00319.34
8.2.80.0080.00317.97
8.2.70.0090.00018.05
8.2.60.0040.00418.16
8.2.50.0080.00018.10
8.2.40.0070.00019.41
8.2.30.0000.00719.37
8.2.20.0030.00318.17
8.2.10.0000.00817.92
8.2.00.0030.00319.23
8.1.280.0110.00325.92
8.1.270.0040.00420.24
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0000.00920.83
8.1.230.0000.01119.55
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.01017.10
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0080.00018.50
8.1.160.0000.00718.71
8.1.150.0000.00718.80
8.1.140.0000.00817.53
8.1.130.0070.00020.65
8.1.120.0060.00317.31
8.1.110.0030.00317.39
8.1.100.0040.00417.43
8.1.90.0000.00817.35
8.1.80.0000.00717.42
8.1.70.0050.00317.33
8.1.60.0040.00417.61
8.1.50.0000.00817.39
8.1.40.0060.00317.56
8.1.30.0060.00317.64
8.1.20.0060.00317.68
8.1.10.0000.00817.53
8.1.00.0030.00517.41
8.0.300.0080.00018.77
8.0.290.0040.00416.58
8.0.280.0070.00018.48
8.0.270.0050.00317.25
8.0.260.0000.00617.12
8.0.250.0030.00317.00
8.0.240.0070.00016.92
8.0.230.0070.00016.79
8.0.220.0070.00016.81
8.0.210.0000.00716.80
8.0.200.0040.00416.73
8.0.190.0030.00616.75
8.0.180.0050.00516.88
8.0.170.0000.00816.85
8.0.160.0050.00316.77
8.0.150.0070.00016.81
8.0.140.0000.00816.79
8.0.130.0000.00613.20
8.0.120.0040.00416.73
8.0.110.0040.00416.72
8.0.100.0080.00016.82
8.0.90.0070.00016.70
8.0.80.0070.01316.82
8.0.70.0000.00716.85
8.0.60.0040.00416.68
8.0.50.0040.00416.68
8.0.30.0130.00416.99
8.0.20.0070.01317.40
8.0.10.0050.00216.80
8.0.00.0090.00916.83
7.4.330.0020.00215.55
7.4.320.0000.00816.62
7.4.300.0000.00616.52
7.4.290.0040.00416.50
7.4.280.0040.00416.58
7.4.270.0090.00016.35
7.4.260.0060.00316.58
7.4.250.0070.00016.54
7.4.240.0040.00416.45
7.4.230.0000.00716.33
7.4.220.0030.00516.63
7.4.210.0090.00616.53
7.4.200.0070.00016.63
7.4.160.0160.00316.42
7.4.140.0130.00617.86
7.4.130.0070.01016.39
7.4.120.0120.00716.55
7.4.110.0060.01216.32
7.4.100.0080.00816.62
7.4.90.0100.00716.57
7.4.80.0090.01219.39
7.4.70.0060.01316.47
7.4.60.0060.01216.39
7.4.50.0060.00616.44
7.4.40.0060.01016.38
7.4.00.0030.01014.59
7.3.330.0000.00513.08
7.3.320.0050.00013.30
7.3.310.0030.00316.40
7.3.300.0000.00716.17
7.3.290.0000.00716.18
7.3.280.0100.00916.22
7.3.260.0110.00616.49
7.3.240.0090.00816.49
7.3.230.0180.00016.53
7.3.210.0120.00816.36
7.3.200.0130.00316.51
7.3.190.0100.00616.52
7.3.180.0090.00816.32
7.3.170.0150.00316.34
7.3.160.0150.00616.38
7.3.10.0180.00016.66
7.3.00.0100.00716.50
7.2.330.0130.01016.36
7.2.320.0030.01716.61
7.2.310.0060.01516.87
7.2.300.0000.02116.73
7.2.290.0160.00616.85
7.2.130.0160.00716.75
7.2.120.0150.00016.43
7.2.110.1820.00515.58
7.2.100.1480.00515.58
7.2.90.2600.00615.81
7.2.80.2390.00915.68
7.2.70.1110.00915.45
7.2.60.1310.00915.46
7.2.50.1330.00715.38
7.2.40.1380.00915.61
7.2.30.1150.01115.19
7.2.20.1200.00715.34
7.2.10.1310.01015.46
7.2.00.1000.00815.60
7.1.250.0080.00515.50
7.1.230.3060.00613.34
7.1.220.3960.00013.39
7.1.210.4150.01013.80
7.1.200.2060.01014.81
7.1.190.3030.00313.86
7.1.180.3180.01313.74
7.1.170.1870.00513.81
7.1.160.1760.01013.81
7.1.150.1740.00713.69
7.1.140.1830.00813.83
7.1.130.1780.01213.88
7.1.120.1250.00713.80
7.1.110.1760.00513.74
7.1.100.1370.00813.73
7.1.90.1740.00713.71
7.1.80.2740.00813.79
7.1.70.2130.00813.78
7.1.60.2610.01031.72
7.1.50.4010.01331.88
7.1.40.3560.01031.80
7.1.30.3680.00931.79
7.1.20.3320.01631.62
7.1.10.3170.00613.63
7.1.00.2630.00713.95
5.6.380.0060.01214.11

preferences:
59.02 ms | 401 KiB | 5 Q