3v4l.org

run code in 300+ PHP versions simultaneously
<?php $badScript = '<?php /* Broken comment '; $filename = tempnam(sys_get_temp_dir(), 'badScript'); file_put_contents($filename, $badScript); function examine($text, $filename, $errorReporting, $displayErrors) { error_reporting($errorReporting); ini_set('display_errors', $displayErrors); ini_set('log_errors', $displayErrors); echo 'error_reporting = ', $errorReporting, PHP_EOL, 'display_errors = ', $displayErrors, PHP_EOL, 'log_errors = ', $displayErrors, PHP_EOL; error_clear_last(); highlight_string($text, true); echo 'highlight_string(): ', (error_get_last() ? 'error' : 'no error'), PHP_EOL; error_clear_last(); highlight_file($filename, true); echo 'highlight_file(): ', (error_get_last() ? 'error' : 'no error'), PHP_EOL; } examine($badScript, $filename, -1, 1); examine($badScript, $filename, -1, 0); examine($badScript, $filename, 0, 1); examine($badScript, $filename, 0, 0); unlink($filename);

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.0160.00616.88
8.3.50.0110.00718.12
8.3.40.0150.00019.17
8.3.30.0180.00018.79
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.180.0000.01525.92
8.2.170.0120.00819.21
8.2.160.0100.01022.96
8.2.150.0030.00525.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00021.17
8.2.110.0040.00719.28
8.2.100.0170.00017.91
8.2.90.0080.00019.12
8.2.80.0080.00018.05
8.2.70.0030.00517.50
8.2.60.0070.00717.68
8.2.50.0030.00618.07
8.2.40.0040.00419.82
8.2.30.0040.00417.98
8.2.20.0040.00419.41
8.2.10.0000.00817.91
8.2.00.0000.00719.35
8.1.280.0150.00025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.01019.28
8.1.230.0040.00720.91
8.1.220.0030.00617.78
8.1.210.0030.00518.77
8.1.200.0070.00317.22
8.1.190.0050.00317.10
8.1.180.0000.01218.10
8.1.170.0050.00318.59
8.1.160.0040.00418.94
8.1.150.0000.00718.56
8.1.140.0060.00317.34
8.1.130.0040.00418.89
8.1.120.0040.00417.42
8.1.110.0040.00417.41
8.1.100.0000.00817.32
8.1.90.0040.00417.43
8.1.80.0040.00717.45
8.1.70.0040.00417.44
8.1.60.0060.00317.66
8.1.50.0030.00617.52
8.1.40.0050.00317.68
8.1.30.0060.00317.65
8.1.20.0030.00617.75
8.1.10.0090.00017.59
8.1.00.0000.00817.51
8.0.300.0000.00818.77
8.0.290.0030.00616.88
8.0.280.0030.00618.47
8.0.270.0000.00818.14
8.0.260.0030.00318.43
8.0.250.0070.00017.13
8.0.240.0060.00317.06
8.0.230.0030.00317.06
8.0.220.0000.00816.94
8.0.210.0030.00317.05
8.0.200.0070.00017.08
8.0.190.0070.00417.08
8.0.180.0000.00816.99
8.0.170.0040.00417.06
8.0.160.0000.00816.88
8.0.150.0040.00417.04
8.0.140.0040.00416.80
8.0.130.0030.00313.41
8.0.120.0090.00016.95
8.0.110.0020.00617.03
8.0.100.0000.00816.95
8.0.90.0000.00816.92
8.0.80.0000.00716.88
8.0.70.0040.00416.92
8.0.60.0060.00216.94
8.0.50.0030.00516.99
8.0.30.0000.00816.89
8.0.20.0000.00716.90
8.0.10.0020.00616.99
8.0.00.0060.00216.95
7.4.330.0000.00515.55
7.4.320.0030.00316.59
7.4.300.0060.00316.56
7.4.290.0000.00716.48
7.4.280.0030.00616.60
7.4.270.0040.00416.63
7.4.260.0000.00613.40
7.4.250.0020.00516.41
7.4.240.0030.00516.64
7.4.230.0080.00016.65
7.4.220.0020.00616.60
7.4.210.0040.00316.63
7.4.200.0080.00016.61
7.4.190.0030.00516.67
7.4.180.0030.00416.59
7.4.160.0020.00616.58
7.4.150.0040.00316.58
7.4.140.0000.00716.56
7.4.130.0010.00616.58
7.4.120.0010.00616.58
7.4.110.0030.00516.58
7.4.100.0040.00416.62
7.4.90.0040.00416.51
7.4.80.0020.00616.62
7.4.70.0050.00216.59
7.4.60.0020.00616.63
7.4.50.0020.00516.36
7.4.40.0040.00316.45
7.4.30.0040.00316.51
7.4.20.0020.00616.47
7.4.10.0060.00316.42
7.4.00.0030.00616.48
7.3.330.0030.00516.39
7.3.320.0030.00313.33
7.3.310.0010.00716.44
7.3.300.0070.00216.49
7.3.290.0040.00416.41
7.3.280.0030.00516.38
7.3.270.0040.00316.52
7.3.260.0000.00816.48
7.3.250.0020.00516.42
7.3.240.0020.00516.39
7.3.230.0020.00516.41
7.3.220.0020.00516.36
7.3.210.0000.00716.41
7.3.200.0040.00316.37
7.3.190.0020.00516.44
7.3.180.0000.00816.42
7.3.170.0050.00316.32
7.3.160.0040.00316.38
7.3.150.0010.00616.31
7.3.140.0040.00416.37
7.3.130.0000.00716.39
7.3.120.0020.00516.33
7.3.110.0040.00416.35
7.3.100.0000.00816.25
7.3.90.0040.00416.63
7.3.80.0040.00416.31
7.3.70.0020.00616.42
7.3.60.0030.00516.53
7.3.50.0030.00516.50
7.3.40.0000.00716.51
7.3.30.0020.00516.45
7.3.20.0030.00518.13
7.3.10.0070.00118.12
7.3.00.0060.00218.19
7.2.340.0040.00416.43
7.2.330.0040.00416.46
7.2.320.0080.00016.30
7.2.310.0040.00416.46
7.2.300.0030.00516.39
7.2.290.0000.00816.45
7.2.280.0060.00316.42
7.2.270.0080.00016.32
7.2.260.0000.00916.32
7.2.250.0060.00316.46
7.2.240.0030.00516.45
7.2.230.0050.00216.25
7.2.220.0030.00616.43
7.2.210.0030.00616.48
7.2.200.0000.00716.50
7.2.190.0040.00416.52
7.2.180.0070.00016.38
7.2.170.0040.00416.43
7.2.160.0020.00516.51
7.2.150.0060.00318.36
7.2.140.0000.00818.21
7.2.130.0000.00818.55
7.2.120.0060.00318.54
7.2.110.0080.00018.48
7.2.100.0040.00418.37
7.2.90.0030.00618.39
7.2.80.0060.00318.33
7.2.70.0000.00818.39
7.2.60.0030.00618.38
7.2.50.0050.00318.35
7.2.40.0030.00518.30
7.2.30.0050.00318.32
7.2.20.0000.00918.32
7.2.10.0080.00018.48
7.2.00.0040.00418.36
7.1.330.0060.00317.46
7.1.320.0080.00017.43
7.1.310.0000.00917.42
7.1.300.0000.00917.36
7.1.290.0000.00817.47
7.1.280.0080.00017.22
7.1.270.0000.00917.25
7.1.260.0090.00017.53
7.1.250.0060.00317.41
7.1.240.0060.00317.37
7.1.230.0000.00917.31
7.1.220.0000.00917.26
7.1.210.0050.00517.42
7.1.200.0080.00317.32
7.1.190.0000.00917.38
7.1.180.0050.00517.16
7.1.170.0080.00017.23
7.1.160.0000.00817.26
7.1.150.0060.00317.33
7.1.140.0100.00017.21
7.1.130.0030.00617.21
7.1.120.0000.00817.21
7.1.110.0000.00917.33
7.1.100.0000.00917.43
7.1.90.0000.00917.18
7.1.80.0000.00917.25
7.1.70.0030.00617.18
7.1.60.0020.00717.32
7.1.50.0030.00617.46
7.1.40.0100.00017.32
7.1.30.0050.00517.38
7.1.20.0050.00517.21
7.1.10.0050.00317.22
7.1.00.0040.00417.15
7.0.330.0060.00316.94
7.0.320.0020.00717.23
7.0.310.0070.00217.04
7.0.300.0070.00317.02
7.0.290.0030.00617.17
7.0.280.0090.00016.94
7.0.270.0090.00017.00
7.0.260.0030.00617.19
7.0.250.0070.00017.08
7.0.240.0070.00017.22
7.0.230.0090.00017.25
7.0.220.0000.00717.10
7.0.210.0030.00617.11
7.0.200.0060.00317.01
7.0.190.0060.00317.09
7.0.180.0070.00217.00
7.0.170.0030.00617.21
7.0.160.0080.00017.01
7.0.150.0040.00417.00
7.0.140.0060.00216.97
7.0.130.0060.00316.97
7.0.120.0060.00317.11
7.0.110.0000.00917.07
7.0.100.0000.00816.94
7.0.90.0040.00416.82
7.0.80.0050.00516.82
7.0.70.0040.00416.71
7.0.60.0030.00617.18
7.0.50.0000.00916.99
7.0.40.0060.00317.12
7.0.30.0060.00316.98
7.0.20.0050.00517.08
7.0.10.0000.00917.14
7.0.00.0000.00917.09
5.6.400.0080.00015.75
5.6.390.0000.00815.69
5.6.380.0070.00015.57
5.6.370.0000.00615.65
5.6.360.0000.00715.64
5.6.350.0030.00315.79
5.6.340.0000.00715.78
5.6.330.0020.00515.86
5.6.320.0000.00715.74
5.6.310.0030.00615.75
5.6.300.0030.00515.70
5.6.290.0000.00815.70
5.6.280.0030.00315.64
5.6.270.0070.00015.71
5.6.260.0030.00315.68
5.6.250.0000.00715.64
5.6.240.0070.00015.77
5.6.230.0050.00215.96
5.6.220.0000.00715.78
5.6.210.0030.00315.91
5.6.200.0050.00215.87
5.6.190.0000.00715.92
5.6.180.0070.00015.68
5.6.170.0030.00315.93
5.6.160.0070.00015.77
5.6.150.0030.00315.82
5.6.140.0020.00515.84
5.6.130.0070.00015.88
5.6.120.0030.00315.77
5.6.110.0070.00015.73
5.6.100.0000.00715.73
5.6.90.0030.00315.69
5.6.80.0030.00315.75
5.6.70.0000.00615.75
5.6.60.0030.00315.91
5.6.50.0070.00015.64
5.6.40.0070.00015.74
5.6.30.0020.00515.75
5.6.20.0000.00715.63
5.6.10.0070.00015.67
5.6.00.0030.00515.76
5.5.380.0070.00016.03
5.5.370.0030.00315.88
5.5.360.0030.00315.54
5.5.350.0000.00715.51
5.5.340.0030.00315.59
5.5.330.0000.00815.84
5.5.320.0040.00415.75
5.5.310.0040.00415.79
5.5.300.0000.00815.64
5.5.290.0030.00315.52
5.5.280.0070.00015.62
5.5.270.0030.00315.61
5.5.260.0030.00315.51
5.5.250.0030.00315.61
5.5.240.0040.00415.80
5.5.230.0000.00715.65
5.5.220.0000.00715.77
5.5.210.0000.00715.73
5.5.200.0070.00015.71
5.5.190.0050.00215.77
5.5.180.0070.00015.52
5.5.170.0020.00515.62
5.5.160.0020.00515.74
5.5.150.0000.00715.47
5.5.140.0020.00515.52
5.5.130.0030.00315.50
5.5.120.0030.00315.41
5.5.110.0000.00615.58
5.5.100.0030.00315.67
5.5.90.0000.00715.66
5.5.80.0000.00715.80
5.5.70.0040.00415.69
5.5.60.0060.00215.77
5.5.50.0050.00215.67
5.5.40.0000.00915.86
5.5.30.0070.00015.82
5.5.20.0050.00215.92
5.5.10.0000.00715.71
5.5.00.0070.00015.53
5.4.450.0000.00612.84
5.4.440.0050.00012.65
5.4.430.0020.00212.58
5.4.420.0000.00512.66
5.4.410.0000.00512.83
5.4.400.0000.00612.60
5.4.390.0030.00312.47
5.4.380.0000.00512.47
5.4.370.0020.00212.48
5.4.360.0030.00312.52
5.4.350.0000.00612.77
5.4.340.0030.00312.61
5.4.330.0000.00512.61
5.4.320.0030.00312.52
5.4.310.0050.00012.83
5.4.300.0000.00512.69
5.4.290.0020.00212.54
5.4.280.0050.00012.55
5.4.270.0050.00012.49
5.4.260.0030.00312.76
5.4.250.0000.00612.61
5.4.240.0050.00012.64
5.4.230.0060.00012.44
5.4.220.0060.00012.29
5.4.210.0050.00012.28
5.4.200.0000.00512.24
5.4.190.0050.00012.29
5.4.180.0060.00012.45
5.4.170.0030.00312.51
5.4.160.0000.00612.64
5.4.150.0030.00312.56
5.4.140.0000.00512.46
5.4.130.0050.00012.60
5.4.120.0000.00512.51
5.4.110.0020.00212.83
5.4.100.0050.00012.54
5.4.90.0000.00512.52
5.4.80.0030.00312.64
5.4.70.0030.00312.77
5.4.60.0020.00212.78
5.4.50.0000.00512.51
5.4.40.0000.00512.73
5.4.30.0060.00012.60
5.4.20.0000.00612.61
5.4.10.0000.00512.62
5.4.00.0000.00612.62
5.3.290.0070.00013.07
5.3.280.0040.00412.85
5.3.270.0000.00612.98
5.3.260.0020.00412.94
5.3.250.0000.00612.98
5.3.240.0030.00313.00
5.3.230.0030.00312.84
5.3.220.0050.00013.15
5.3.210.0040.00412.91
5.3.200.0000.00713.08
5.3.190.0070.00012.95
5.3.180.0030.00313.02
5.3.170.0030.00313.29
5.3.160.0070.00013.27
5.3.150.0030.00313.18
5.3.140.0000.00713.25
5.3.130.0030.00313.04
5.3.120.0000.00713.20
5.3.110.0000.00713.20
5.3.100.0020.00513.19
5.3.90.0030.00313.15
5.3.80.0030.00312.97
5.3.70.0000.00713.13
5.3.60.0030.00313.19
5.3.50.0020.00413.07
5.3.40.0050.00213.24
5.3.30.0050.00213.23
5.3.20.0030.00313.16
5.3.10.0030.00313.03
5.3.00.0030.00312.77
5.2.170.0000.00611.92
5.2.160.0000.00611.99
5.2.150.0030.00311.95
5.2.140.0020.00411.98
5.2.130.0000.00611.93
5.2.120.0000.00612.15
5.2.110.0060.00012.14
5.2.100.0040.00211.95
5.2.90.0000.00612.14
5.2.80.0060.00011.86
5.2.70.0000.00712.07
5.2.60.0000.00612.03
5.2.50.0030.00311.84
5.2.40.0000.00612.08
5.2.30.0030.00311.87
5.2.20.0040.00211.93
5.2.10.0040.00211.70
5.2.00.0000.00511.65
5.1.60.0030.00311.02
5.1.50.0000.00510.95
5.1.40.0060.00010.80
5.1.30.0070.00011.02
5.1.20.0040.00211.18
5.1.10.0000.00610.98
5.1.00.0000.00510.84
5.0.50.0000.0049.99
5.0.40.0000.0049.86
5.0.30.0020.00210.09
5.0.20.0000.0049.83
5.0.10.0000.0049.94
5.0.00.0040.0009.84
4.4.90.0030.0009.83
4.4.80.0000.0039.83
4.4.70.0030.0009.83
4.4.60.0000.0039.83
4.4.50.0000.0039.83
4.4.40.0000.0039.83
4.4.30.0000.0039.83
4.4.20.0000.0039.83
4.4.10.0000.0029.83
4.4.00.0000.0029.83
4.3.110.0020.0009.83
4.3.100.0030.0009.83
4.3.90.0000.0039.83
4.3.80.0000.0039.83
4.3.70.0020.0029.83
4.3.60.0000.0039.83
4.3.50.0000.0039.83
4.3.40.0000.0039.83
4.3.30.0000.0029.83
4.3.20.0020.0009.83
4.3.10.0000.0029.83
4.3.00.0000.0039.83

preferences:
83.31 ms | 400 KiB | 5 Q