3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Simple function to replicate PHP 5 behaviour */ function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $time_start = microtime_float(); // Sleep for a while usleep(100); $time_end = microtime_float(); $time = $time_end - $time_start; echo "Did nothing in $time seconds\n";

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)
7.4.00.0060.00914.84
7.3.120.0080.00614.65
7.3.110.0060.01214.85
7.3.100.0120.00614.88
7.3.90.0100.00614.84
7.3.80.0090.00614.85
7.3.70.0080.00714.91
7.3.60.0060.01114.91
7.3.50.0060.00714.79
7.3.40.0100.00714.70
7.3.30.0050.01014.57
7.3.20.0040.01115.55
7.3.10.0090.00615.53
7.3.00.0050.01115.80
7.2.250.0030.01415.06
7.2.240.0120.00615.16
7.2.230.0060.00914.93
7.2.220.0090.00315.04
7.2.210.0070.00915.00
7.2.200.0060.00714.74
7.2.190.0090.00614.79
7.2.180.0100.00615.05
7.2.170.0030.01314.99
7.2.160.0150.00715.12
7.2.150.0040.01715.22
7.2.140.0130.00915.01
7.2.130.0160.00714.83
7.2.120.0150.00615.11
7.2.110.0210.00716.68
7.2.100.0100.01016.98
7.2.90.0180.00616.89
7.2.80.0060.01816.96
7.2.70.0120.01216.99
7.2.60.0120.01217.02
7.2.50.0130.00817.02
7.2.40.0140.00716.96
7.2.30.0170.00516.91
7.2.20.0140.00616.80
7.2.10.0070.01416.81
7.2.00.0030.01018.08
7.1.330.0030.01114.77
7.1.320.0080.00714.65
7.1.310.0100.00514.86
7.1.300.0100.01014.93
7.1.290.0080.00414.75
7.1.280.0050.00814.84
7.1.270.0060.00914.77
7.1.260.0050.00714.92
7.1.250.0140.00613.91
7.1.240.0240.00415.93
7.1.230.0200.01015.71
7.1.220.0110.00815.45
7.1.210.0150.00915.84
7.1.200.0180.00615.61
7.1.190.0160.00615.82
7.1.180.0110.00715.70
7.1.170.0210.00016.00
7.1.160.0170.00315.71
7.1.150.0130.00715.92
7.1.140.0180.00415.46
7.1.130.0120.01215.78
7.1.120.0160.00215.68
7.1.110.0120.00815.75
7.1.100.0110.00915.85
7.1.90.0150.00515.68
7.1.80.0140.00715.52
7.1.70.0090.00516.60
7.1.60.0090.00917.59
7.1.50.0110.01016.42
7.1.40.0090.00915.86
7.1.30.0130.00715.53
7.1.20.0160.00815.87
7.1.10.0100.01315.69
7.1.00.0090.02218.97
7.0.330.0170.00313.55
7.0.320.0130.01115.33
7.0.310.0120.00915.45
7.0.300.0170.00415.35
7.0.290.0060.01215.32
7.0.280.0120.00715.50
7.0.270.0080.01315.41
7.0.260.0150.00315.35
7.0.250.0080.01315.56
7.0.240.0050.01615.49
7.0.230.0080.01115.34
7.0.220.0080.01115.37
7.0.210.0090.00915.34
7.0.200.0100.00616.06
7.0.190.0180.00315.31
7.0.180.0060.01115.14
7.0.170.0160.00415.53
7.0.160.0180.00415.37
7.0.150.0160.00315.14
7.0.140.0090.04018.76
7.0.130.0200.00415.50
7.0.120.0070.01215.56
7.0.110.0100.00815.47
7.0.100.0210.03517.72
7.0.90.0100.03317.66
7.0.80.0140.03717.79
7.0.70.0080.02517.75
7.0.60.0150.03916.83
7.0.50.0130.04217.08
7.0.40.0150.03816.88
7.0.30.0160.03716.90
7.0.20.0070.02616.82
7.0.10.0110.03916.86
7.0.00.0070.04716.84
5.6.400.0200.00414.35
5.6.390.0170.00714.62
5.6.380.0080.02014.48
5.6.370.0160.01114.18
5.6.360.0080.01214.40
5.6.350.0140.01014.33
5.6.340.0160.00414.55
5.6.330.0190.00014.32
5.6.320.0150.00614.18
5.6.310.0120.00614.31
5.6.300.0120.00914.35
5.6.290.0110.00914.25
5.6.280.0110.04117.65
5.6.270.0090.01014.37
5.6.260.0100.01014.34
5.6.250.0080.02617.59
5.6.240.0120.02517.45
5.6.230.0100.03817.53
5.6.220.0130.04217.62
5.6.210.0130.04117.52
5.6.200.0070.02417.73
5.6.190.0100.04517.72
5.6.180.0130.04117.66
5.6.170.0140.02017.71
5.6.160.0110.04417.76
5.6.150.0040.05117.74
5.6.140.0080.04717.75
5.6.130.0100.02417.69
5.6.120.0060.03117.63
5.6.110.0070.02917.59
5.6.100.0110.04317.58
5.6.90.0130.04617.74
5.6.80.0070.02717.27
5.6.70.0130.03817.32
5.6.60.0100.03817.36
5.6.50.0060.04817.39
5.6.40.0090.04317.35
5.6.30.0110.04317.31
5.6.20.0130.04017.41
5.6.10.0110.02417.43
5.6.00.0060.04717.25
5.5.380.0160.03817.33
5.5.370.0150.01817.36
5.5.360.0080.04317.43
5.5.350.0090.02417.36
5.5.340.0110.04617.76
5.5.330.0150.04617.71
5.5.320.0130.01917.53
5.5.310.0110.02217.71
5.5.300.0100.04317.52
5.5.290.0070.04517.66
5.5.280.0140.04117.54
5.5.270.0110.03217.44
5.5.260.0050.03517.63
5.5.250.0100.04217.27
5.5.240.0090.02617.24
5.5.230.0110.02417.16
5.5.220.0140.03317.15
5.5.210.0070.02617.12
5.5.200.0110.04117.21
5.5.190.0130.03817.30
5.5.180.0090.03117.28
5.5.170.0060.01514.27
5.5.160.0080.02616.96
5.5.150.0130.02217.24
5.5.140.0120.02317.25
5.5.130.0140.03417.05
5.5.120.0090.04017.19
5.5.110.0090.02616.95
5.5.100.0170.02917.20
5.5.90.0080.03217.26
5.5.80.0100.03317.11
5.5.70.0110.04517.23
5.5.60.0060.02617.21
5.5.50.0090.04217.14
5.5.40.0170.03517.13
5.5.30.0070.04517.03
5.5.20.0110.03317.18
5.5.10.0060.03517.06
5.5.00.0090.04417.18
5.4.450.0070.03216.12
5.4.440.0120.02516.04
5.4.430.0060.02316.03
5.4.420.0080.04216.12
5.4.410.0080.03015.97
5.4.400.0080.03715.91
5.4.390.0030.04515.90
5.4.380.0060.02215.87
5.4.370.0090.03315.88
5.4.360.0070.04015.87
5.4.350.0140.03815.80
5.4.340.0050.04615.97
5.4.330.0030.01012.70
5.4.320.0050.02615.87
5.4.310.0070.04615.86
5.4.300.0070.02815.94
5.4.290.0050.04615.88
5.4.280.0090.02315.92
5.4.270.0090.02315.92
5.4.260.0080.04215.91
5.4.250.0130.04215.91
5.4.240.0070.02215.87
5.4.230.0060.03315.95
5.4.220.0140.03915.93
5.4.210.0090.02115.87
5.4.200.0060.03015.88
5.4.190.0100.03015.78
5.4.180.0020.03915.89
5.4.170.0040.04615.87
5.4.160.0100.03515.91
5.4.150.0100.02515.91
5.4.140.0080.03014.49
5.4.130.0090.03314.47
5.4.120.0100.03314.51
5.4.110.0090.03114.52
5.4.100.0150.02614.61
5.4.90.0120.03714.57
5.4.80.0130.03314.53
5.4.70.0150.03014.56
5.4.60.0090.03714.51
5.4.50.0070.03414.52
5.4.40.0090.02214.58
5.4.30.0030.03514.57
5.4.20.0110.02814.52
5.4.10.0070.02614.51
5.4.00.0080.02814.13
5.3.290.0050.02413.68
5.3.280.0100.03213.63
5.3.270.0080.04013.70
5.3.260.0060.03613.65
5.3.250.0100.03013.64
5.3.240.0030.04313.64
5.3.230.0080.02613.65
5.3.220.0060.04413.65
5.3.210.0090.02513.66
5.3.200.0050.03313.64
5.3.190.0130.03813.64
5.3.180.0100.03713.66
5.3.170.0070.04213.67
5.3.160.0070.03913.64
5.3.150.0070.04113.66
5.3.140.0040.02713.69
5.3.130.0130.03513.68
5.3.120.0110.03613.59
5.3.110.0080.02413.61
5.3.100.0070.02713.35
5.3.90.0090.02713.33
5.3.80.0180.02113.41
5.3.70.0110.02613.43
5.3.60.0060.02613.42
5.3.50.0080.02213.34
5.3.40.0030.04613.29
5.3.30.0070.03813.36
5.3.20.0080.02713.14
5.3.10.0050.03713.12
5.3.00.0110.03813.17

preferences:
35.09 ms | 401 KiB | 5 Q