3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['file'] = '/etc/passwd'; #https://twitter.com/ramal_h #file compressor header('Content-type: text/css'); ob_start("compress"); function compress( $minify ) { $minify = preg_replace( '!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $minify ); $minify = str_replace( array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $minify ); return $minify; } $file = $_GET['file']; if( ($file == '') || (strpos($file, '../') !== false)) exit('Hacking attempt'); else include $_GET['file']; ob_end_flush();

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.0070.00718.30
8.3.50.0100.01018.17
8.3.40.0120.00319.21
8.3.30.0040.01118.94
8.3.20.0050.00320.21
8.3.10.0090.00020.70
8.3.00.0030.00718.48
8.2.180.0110.01116.63
8.2.170.0060.00922.96
8.2.160.0130.00322.33
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00421.18
8.2.120.0040.00426.35
8.2.110.0070.00422.37
8.2.100.0090.00318.00
8.2.90.0030.00519.36
8.2.80.0080.00017.97
8.2.70.0090.00017.88
8.2.60.0050.00318.05
8.2.50.0000.00818.09
8.2.40.0080.00020.33
8.2.30.0070.00019.54
8.2.20.0000.01017.90
8.2.10.0040.00418.15
8.2.00.0040.00418.03
8.1.280.0120.00325.92
8.1.270.0000.00823.88
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00322.75
8.1.230.0030.00917.89
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0040.00417.47
8.1.180.0050.00318.10
8.1.170.0030.00618.56
8.1.160.0040.00420.71
8.1.150.0040.00418.97
8.1.140.0040.00419.65
8.1.130.0050.00317.63
8.1.120.0050.00217.52
8.1.110.0080.00017.63
8.1.100.0030.00517.55
8.1.90.0060.00317.64
8.1.80.0050.00217.66
8.1.70.0070.00017.58
8.1.60.0000.01117.79
8.1.50.0030.00617.67
8.1.40.0030.00917.75
8.1.30.0030.00517.70
8.1.20.0000.00817.74
8.1.10.0080.00017.77
8.1.00.0040.00417.66
8.0.300.0030.00618.77
8.0.290.0040.00416.88
8.0.280.0040.00418.54
8.0.270.0080.00017.27
8.0.260.0020.00517.26
8.0.250.0080.00017.22
8.0.240.0000.00817.07
8.0.230.0040.00417.15
8.0.220.0040.00417.15
8.0.210.0000.00716.95
8.0.200.0030.00317.21
8.0.190.0080.00017.15
8.0.180.0050.00217.12
8.0.170.0050.00317.04
8.0.160.0040.00417.06
8.0.150.0050.00317.18
8.0.140.0050.00317.06
8.0.130.0000.00613.54
8.0.120.0090.00017.11
8.0.110.0000.00817.00
8.0.100.0000.00716.95
8.0.90.0000.00717.18
8.0.80.0110.00517.16
8.0.70.0040.00416.97
8.0.60.0070.00017.06
8.0.50.0030.00617.04
8.0.30.0140.00717.36
8.0.20.0130.00617.44
8.0.10.0000.00717.05
8.0.00.0110.00916.96
7.4.330.0000.00516.85
7.4.320.0000.00716.77
7.4.300.0080.00016.75
7.4.290.0030.00316.81
7.4.280.0040.00416.71
7.4.270.0060.00316.78
7.4.260.0000.00816.80
7.4.250.0040.00416.68
7.4.240.0070.00016.66
7.4.230.0030.00316.63
7.4.220.0090.00916.77
7.4.210.0070.01016.84
7.4.200.0000.00716.85
7.4.160.0120.00616.65
7.4.150.0070.01117.40
7.4.140.0090.01117.86
7.4.130.0100.01016.77
7.4.120.0040.01816.90
7.4.110.0090.01316.66
7.4.100.0110.01416.94
7.4.90.0110.00616.77
7.4.80.0050.01419.39
7.4.70.0030.01316.83
7.4.60.0090.00916.64
7.4.50.0070.01016.84
7.4.40.0110.00716.78
7.4.30.0140.00616.73
7.4.00.0070.00315.35
7.3.330.0070.00013.43
7.3.320.0050.00013.54
7.3.310.0030.00316.48
7.3.300.0080.00016.55
7.3.290.0070.00016.61
7.3.280.0090.01116.58
7.3.270.0090.01217.40
7.3.260.0150.00316.57
7.3.240.0120.00716.80
7.3.230.0170.00716.69
7.3.210.0140.00416.51
7.3.200.0090.00816.60
7.3.190.0130.00316.55
7.3.180.0030.01316.50
7.3.170.0070.01116.75
7.3.160.0100.00716.75
7.2.330.0080.01517.03
7.2.320.0090.00916.81
7.2.310.0160.00416.88
7.2.300.0120.00416.88
7.2.290.0090.01116.89
7.2.60.0070.01017.11
7.2.00.0070.01019.80
7.1.200.0060.00616.13
7.1.100.0090.00618.32
7.1.70.0070.00417.30
7.1.60.0070.01119.27
7.1.50.0090.00316.89
7.1.00.0070.07322.38
7.0.200.0320.01014.73
7.0.60.0130.08021.63
7.0.50.0070.04717.91
7.0.40.0030.07320.27
7.0.30.0400.06320.15
7.0.20.0330.06020.26
7.0.10.0130.08020.19
7.0.00.0000.05320.09
5.6.280.0000.03321.06
5.6.210.0170.04720.71
5.6.200.0100.06718.14
5.6.190.0030.04320.62
5.6.180.0230.04020.55
5.6.170.0400.06020.45
5.6.160.0070.08020.55
5.6.150.0130.06718.23
5.6.140.0100.08318.26
5.6.130.0030.04318.22
5.6.120.0030.07721.04
5.6.110.0030.08721.01
5.6.100.0000.04321.02
5.6.90.0100.08320.98
5.6.80.0030.07720.41
5.5.350.0230.08320.32
5.5.340.0070.07718.09
5.5.330.0070.06320.28
5.5.320.0300.06320.29
5.5.310.0270.06020.31
5.5.300.0030.04017.96
5.5.290.0070.07017.94
5.5.280.0070.08020.79
5.5.270.0030.07020.86
5.5.260.0100.03720.70
5.5.250.0170.06720.68
5.5.240.0030.05320.14

preferences:
56.72 ms | 400 KiB | 5 Q