3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = '/proc/self/mem'; $fp = fopen($name, 'rb'); // send the right headers header("Content-Type: image/png"); header("Content-Length: " . filesize($name)); // dump the picture and stop the script fpassthru($fp); exit;

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.0140.00716.75
8.3.50.0000.01416.44
8.3.40.0000.01518.71
8.3.30.0080.00818.73
8.3.20.0040.01120.14
8.3.10.0000.00721.85
8.3.00.0060.00319.25
8.2.180.0140.00418.50
8.2.170.0090.00622.96
8.2.160.0100.00620.11
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00019.16
8.2.120.0080.00026.35
8.2.110.0130.00621.04
8.2.100.0090.00318.21
8.2.90.0040.00419.27
8.2.80.0050.00318.04
8.2.70.0030.00617.63
8.2.60.0080.00018.04
8.2.50.0040.00418.10
8.2.40.0040.00420.55
8.2.30.0000.00820.93
8.2.20.0030.00518.02
8.2.10.0050.00218.07
8.2.00.0040.00418.19
8.1.280.0130.00625.92
8.1.270.0060.00322.05
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00424.02
8.1.230.0090.00319.21
8.1.220.0030.00517.80
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0000.00818.53
8.1.160.0000.00718.98
8.1.150.0030.00620.57
8.1.140.0000.00719.45
8.1.130.0060.00318.82
8.1.120.0090.00017.38
8.1.110.0090.00017.35
8.1.100.0040.00417.35
8.1.90.0040.00417.41
8.1.80.0030.00317.44
8.1.70.0000.00717.45
8.1.60.0000.00917.50
8.1.50.0050.00317.45
8.1.40.0040.00417.60
8.1.30.0080.00017.70
8.1.20.0000.00917.59
8.1.10.0000.00817.51
8.1.00.0040.00417.50
8.0.300.0050.00318.77
8.0.290.0080.00016.88
8.0.280.0040.00418.52
8.0.270.0040.00417.37
8.0.260.0000.00716.95
8.0.250.0000.00716.99
8.0.240.0000.00817.11
8.0.230.0030.00317.10
8.0.220.0030.00316.92
8.0.210.0060.00316.95
8.0.200.0070.00017.06
8.0.190.0000.00717.11
8.0.180.0000.01117.11
8.0.170.0000.00717.11
8.0.160.0040.00416.88
8.0.150.0040.00416.96
8.0.140.0070.00017.00
8.0.130.0000.00613.36
8.0.120.0050.00315.19
8.0.110.0040.00715.15
8.0.100.0080.00315.22
8.0.90.0050.00615.18
8.0.80.0080.00615.13
8.0.70.0080.00215.07
8.0.60.0090.00215.08
8.0.50.0060.00415.08
8.0.30.0120.00416.05
8.0.20.0080.00816.60
8.0.10.0020.00515.25
8.0.00.0070.00515.04
7.4.330.0000.00515.55
7.4.320.0040.00416.46
7.4.300.0050.00316.54
7.4.290.0000.00716.52
7.4.280.0000.00816.53
7.4.270.0070.00016.45
7.4.260.0070.00016.55
7.4.250.0050.00214.87
7.4.240.0030.00314.87
7.4.230.0020.00514.89
7.4.220.0050.00914.84
7.4.210.0030.01115.66
7.4.200.0020.00614.88
7.4.190.0040.00913.35
7.4.180.0140.00013.26
7.4.160.0070.00715.43
7.4.150.0140.00315.29
7.4.140.0110.00716.69
7.4.130.0100.00514.78
7.4.120.0070.00915.60
7.4.110.0050.01014.85
7.4.100.0130.00214.88
7.4.90.0130.00514.79
7.4.80.0090.00916.33
7.4.70.0110.00414.86
7.4.60.0130.00114.93
7.4.50.0050.00814.61
7.4.40.0100.00514.83
7.4.30.0090.00714.92
7.4.20.0110.00013.09
7.4.10.0090.00313.13
7.4.00.0080.00514.03
7.3.330.0050.00013.30
7.3.320.0000.00513.21
7.3.310.0060.00414.75
7.3.300.0070.00314.64
7.3.290.0080.00314.76
7.3.280.0110.00616.04
7.3.270.0230.01015.26
7.3.260.0120.00615.34
7.3.250.0090.00715.57
7.3.240.0100.00615.29
7.3.230.0100.00514.79
7.3.220.0080.00412.88
7.3.210.0100.00514.58
7.3.200.0110.00314.66
7.3.190.0110.00514.74
7.3.180.0070.00714.65
7.3.170.0090.00714.78
7.3.160.0060.01114.66
7.3.150.0080.00413.04
7.3.140.0000.00612.94
7.3.130.0030.00613.05
7.3.120.0040.00813.16
7.3.110.0070.00513.09
7.3.100.0000.00613.10
7.3.90.0030.00313.20
7.3.80.0000.00513.17
7.3.70.0060.00013.00
7.3.60.0000.00613.23
7.3.50.0050.00013.17
7.3.40.0000.00513.05
7.3.30.0060.00013.20
7.3.20.0060.00014.91
7.3.10.0040.00515.87
7.3.00.0020.00915.88
7.2.340.0120.00013.29
7.2.330.0090.00614.91
7.2.320.0110.00414.99
7.2.310.0110.00614.92
7.2.300.0060.01214.92
7.2.290.0080.00814.96
7.2.280.0080.00413.17
7.2.270.0100.00313.26
7.2.260.0130.00013.23
7.2.250.0060.00613.19
7.2.240.0130.00013.18
7.2.230.0120.00013.15
7.2.220.0090.00313.26
7.2.210.0000.01213.21
7.2.200.0120.00313.17
7.2.190.0130.00013.33
7.2.180.0090.00413.28
7.2.170.0090.00413.20
7.2.160.0120.00013.40
7.2.150.0100.00315.16
7.2.140.0080.00515.02
7.2.130.0070.00616.42
7.2.120.0050.00716.39
7.2.110.0090.00716.34
7.2.100.0070.00416.31
7.2.90.0040.01016.38
7.2.80.0050.01016.25
7.2.70.0090.00616.38
7.2.60.0080.00616.45
7.2.50.0020.01016.37
7.2.40.0100.00616.29
7.2.30.0030.01016.22
7.2.20.0080.00616.30
7.2.10.0090.00416.36
7.2.00.0080.00517.25
7.1.330.0090.00314.23
7.1.320.0080.00414.29
7.1.310.0110.00014.17
7.1.300.0040.00814.21
7.1.290.0080.00414.09
7.1.280.0100.00214.05
7.1.270.0120.00014.29
7.1.260.0090.00314.10
7.1.250.0060.00715.13
7.1.240.0060.00614.96
7.1.230.0090.00315.09
7.1.220.0060.00915.04
7.1.210.0090.00714.86
7.1.200.0110.00514.93
7.1.190.0080.00814.79
7.1.180.0050.00614.96
7.1.170.0060.00614.91
7.1.160.0080.00614.84
7.1.150.0040.00814.92
7.1.140.0080.00514.91
7.1.130.0070.00614.85
7.1.120.0090.00414.86
7.1.110.0070.00514.93
7.1.100.0090.00415.86
7.1.90.0080.00514.92
7.1.80.0060.00514.92
7.1.70.0110.00715.00
7.1.60.0150.00520.88
7.1.50.0150.00820.87
7.1.40.0130.00920.79
7.1.30.0170.00520.74
7.1.20.0150.00720.73
7.1.10.0110.00414.78
7.1.00.0060.00914.89
7.0.330.0080.00414.60
7.0.320.0090.00214.55
7.0.310.0030.01214.63
7.0.300.0060.00614.47
7.0.290.0090.00414.47
7.0.280.0090.00314.67
7.0.270.0070.00414.74
7.0.260.0070.00514.44
7.0.250.0090.00314.70
7.0.240.0090.00414.63
7.0.230.0050.00514.54
7.0.220.0040.00814.62
7.0.210.0110.00114.59
7.0.200.0150.00414.80
7.0.190.0120.00314.77
7.0.180.0100.00614.65
7.0.170.0100.00714.45
7.0.160.0120.00414.50
7.0.150.0070.00914.54
7.0.140.0080.00714.55
7.0.130.0100.00614.64
7.0.120.0090.00714.81
7.0.110.0110.00414.60
7.0.100.0100.00714.61
7.0.90.0060.00914.52
7.0.80.0100.00714.63
7.0.70.0120.00414.56
7.0.60.0250.00514.55
7.0.50.0130.00414.59
7.0.40.0110.00714.08
7.0.30.0100.00513.95
7.0.20.0080.00713.90
7.0.10.0110.00514.04
7.0.00.0100.00713.90
5.6.400.0060.00612.72
5.6.390.0120.00012.74
5.6.380.0090.00313.40
5.6.370.0100.00312.67
5.6.360.0080.00412.80
5.6.350.0060.00612.78
5.6.340.0000.01212.52
5.6.330.0070.00412.48
5.6.320.0100.00212.67
5.6.310.0080.00412.64
5.6.300.0060.00512.36
5.6.290.0090.00212.55
5.6.280.0050.00512.54
5.6.270.0110.00012.74
5.6.260.0070.00412.63
5.6.250.0070.00412.46
5.6.240.0090.00212.56
5.6.230.0050.00512.50
5.6.220.0110.00012.74
5.6.210.0000.01112.44
5.6.200.0110.00012.63
5.6.190.0070.00412.67
5.6.180.0000.01112.51
5.6.170.0120.00012.55
5.6.160.0050.00512.68
5.6.150.0060.00612.73
5.6.140.0110.00012.63
5.6.130.0040.00712.62
5.6.120.0040.00712.59
5.6.110.0080.00412.42
5.6.100.0050.00512.58
5.6.90.0110.00012.61
5.6.80.0070.00412.41
5.6.70.0100.00012.62
5.6.60.0100.00012.63
5.6.50.0040.00712.54
5.6.40.0070.00412.60
5.6.30.0100.00012.73
5.6.20.0050.00512.67
5.6.10.0070.00412.36
5.6.00.0080.00212.55

preferences:
40.86 ms | 400 KiB | 5 Q