3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime( true ); $fp = fopen('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=', 'r' ); $open = microtime( true ); stream_set_blocking( $fp, 1 ); $block = microtime( true ); $data = fread( $fp, 2048 ); $read = microtime( true ); // the time taken to open the url echo "Open: " . ($open-$start) . "\n"; // the time taken to set the stream to blocking echo "Block: " . ($block-$open) . "\n"; // the time taken to read from the the stream echo "Read: " . ($read-$block) . "\n"; // the amount of data read echo "Data Read: " . strlen( $data ) . "\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.2.00.0000.01419.68
7.1.70.0040.00817.13
7.1.60.0100.01619.82
7.1.50.0130.01316.94
7.1.00.0000.07722.48
7.0.200.0040.00416.93
7.0.140.0100.06322.00
7.0.60.0070.03719.87
7.0.50.0100.04717.90
7.0.40.0030.04320.27
7.0.30.0170.05020.21
7.0.20.0330.08020.09
7.0.10.0200.07720.21
7.0.00.0030.08720.19
5.6.280.0000.07720.99
5.6.210.0070.07320.56
5.6.200.0100.07718.19
5.6.190.0130.08320.67
5.6.180.0270.07020.68
5.6.170.0270.03020.42
5.6.160.0070.04320.47
5.6.150.0070.08018.22
5.6.140.0030.04018.15
5.6.130.0100.05318.08
5.6.120.0100.07720.89
5.6.110.0100.08020.98
5.6.100.0070.08720.97
5.6.90.0130.06321.11
5.6.80.0070.08720.38
5.5.350.0070.07720.43
5.5.340.0100.07717.95
5.5.330.0030.09020.23
5.5.320.0230.04020.34
5.5.310.0300.07320.21
5.5.300.0030.04717.91
5.5.290.0130.06717.98
5.5.280.0070.05720.89
5.5.270.0030.05320.75
5.5.260.0000.04320.80
5.5.250.0100.06320.69
5.5.240.0270.07720.25
5.4.450.0670.07719.48
5.4.440.0930.07319.21
5.4.430.0800.08319.59
5.4.420.0170.05319.54
5.4.410.0100.05319.09
5.4.400.0700.05318.96
5.4.390.0800.05719.16
5.4.380.0170.06018.75
5.4.370.0370.05018.52
5.4.360.0370.04718.78
5.4.350.0400.06018.70
5.4.340.0200.05018.52
5.4.320.0030.03912.46
5.4.310.0090.03412.45
5.4.300.0060.03712.45
5.4.290.0070.05312.45
5.4.280.0100.03612.35
5.4.270.0080.03512.35
5.4.260.0130.04719.00
5.4.250.0100.05718.94
5.4.240.0100.07718.77
5.4.230.0070.06018.94
5.4.220.0030.05718.74
5.4.210.0130.04718.80
5.4.200.0100.05018.68
5.4.190.0170.05018.86
5.4.180.0070.05318.70
5.4.170.0100.05018.77
5.4.160.0100.05318.83
5.4.150.0100.05018.87
5.4.140.0100.05016.29
5.4.130.0100.04716.24
5.4.120.0130.04316.24
5.4.110.0070.05716.45
5.4.100.0130.04016.43
5.4.90.0130.06716.46
5.4.80.0130.04316.38
5.4.70.0070.05716.48
5.4.60.0070.05016.50
5.4.50.0030.05316.44
5.4.40.0100.05716.54
5.4.30.0000.05316.33
5.4.20.0070.06316.32
5.4.10.0130.05316.47
5.4.00.0130.06015.79
5.3.290.0060.04112.80
5.3.280.0070.05014.52
5.3.270.0030.05714.63
5.3.260.0170.04714.62
5.3.250.0170.06014.76
5.3.240.0070.05314.62
5.3.230.0030.05314.75
5.3.220.0030.05314.58
5.3.210.0100.05014.57
5.3.200.0100.05314.58
5.3.190.0100.04714.46
5.3.180.0130.04314.43
5.3.170.0170.06314.42
5.3.160.0000.05314.58
5.3.150.0030.05314.56
5.3.140.0070.05314.71
5.3.130.0070.07714.64
5.3.120.0100.07314.57
5.3.110.0100.05014.39
5.3.100.0100.05713.92
5.3.90.0100.05013.87
5.3.80.0070.05013.88
5.3.70.0100.06713.89
5.3.60.0170.05713.99
5.3.50.0070.05713.97
5.3.40.0070.04713.84
5.3.30.0130.04313.68
5.3.20.0070.05013.70
5.3.10.0030.05013.68
5.3.00.0030.05013.79
5.2.170.0030.04311.05
5.2.160.0000.04311.15
5.2.150.0030.04311.16
5.2.140.0070.04011.15
5.2.130.0070.03711.02
5.2.120.0000.04311.12
5.2.110.0030.04710.86
5.2.100.0030.04011.02
5.2.90.0030.05711.06
5.2.80.0000.04711.10
5.2.70.0000.04310.93
5.2.60.0070.04011.06
5.2.50.0070.04311.11
5.2.40.0100.03311.00
5.2.30.0070.05311.13
5.2.20.0070.04010.97
5.2.10.0070.03711.08
5.2.00.0070.03710.80
5.1.60.0070.0309.98
5.1.50.0100.03010.19
5.1.40.0030.03310.05
5.1.30.0030.04010.29
5.1.20.0130.02710.34
5.1.10.0000.04010.10
5.1.00.0070.03310.18
5.0.50.0000.0308.59
5.0.40.0070.0378.41
5.0.30.0100.0538.24
5.0.20.0070.0238.18
5.0.10.0000.0308.26
5.0.00.0070.0378.25
4.4.90.0000.0236.90
4.4.80.0070.0176.90
4.4.70.0070.0176.90
4.4.60.0000.0236.90
4.4.50.0000.0236.90
4.4.40.0000.0376.90
4.4.30.0000.0236.90
4.4.20.0030.0206.90
4.4.10.0070.0276.90
4.4.00.0070.0336.90
4.3.110.0030.0236.90
4.3.100.0030.0276.90
4.3.90.0030.0176.90
4.3.80.0000.0336.90
4.3.70.0070.0176.90
4.3.60.0000.0276.90
4.3.50.0000.0236.90
4.3.40.0100.0236.90
4.3.30.0070.0176.90
4.3.20.0070.0236.90
4.3.10.0000.0236.90
4.3.00.0170.0208.11

preferences:
37.4 ms | 401 KiB | 5 Q