3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function tryInclude() { try { require $this->getFileName('include'); } catch (Exception $e) { echo "Catched"; } } private function getFileName($action) { $file = '/unknown/path/to/file'; if (false === file_exists($file)) { throw new Exception(sprintf('The file for this %s was not found.', $action)); } else { return $file; } } } $instance = new Foo; $instance->tryInclude();

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.70.0130.00716.88
8.3.60.0070.01118.56
8.3.50.0110.00822.04
8.3.40.0110.01118.80
8.3.30.0090.00918.81
8.3.20.0080.00018.85
8.3.10.0000.00821.08
8.3.00.0080.00023.61
8.2.180.0070.01118.26
8.2.170.0140.00722.96
8.2.160.0110.00720.44
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00419.66
8.2.110.0060.00320.39
8.2.100.0090.00317.91
8.2.90.0000.00818.98
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0060.00318.04
8.2.50.0000.00918.07
8.2.40.0000.00818.22
8.2.30.0050.00321.30
8.2.20.0080.00017.66
8.2.10.0070.00017.77
8.2.00.0040.00417.93
8.1.280.0140.00425.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.33
8.1.230.0080.00420.86
8.1.220.0000.00818.77
8.1.210.0080.00018.90
8.1.200.0040.00417.35
8.1.190.0090.00017.66
8.1.180.0030.00618.10
8.1.170.0040.00418.55
8.1.160.0070.00018.96
8.1.150.0040.00418.61
8.1.140.0030.00617.36
8.1.130.0050.00317.98
8.1.120.0060.00317.53
8.1.110.0030.00717.41
8.1.100.0040.00417.53
8.1.90.0040.00417.37
8.1.80.0030.00517.37
8.1.70.0000.00817.38
8.1.60.0000.00717.57
8.1.50.0040.00417.43
8.1.40.0000.00817.60
8.1.30.0040.00417.71
8.1.20.0050.00317.58
8.1.10.0030.00617.63
8.1.00.0040.00417.53
8.0.300.0070.00019.89
8.0.290.0040.00417.18
8.0.280.0030.00318.47
8.0.270.0030.00317.16
8.0.260.0040.00416.82
8.0.250.0080.00016.98
8.0.240.0040.00416.86
8.0.230.0070.00017.00
8.0.220.0000.00716.83
8.0.210.0040.00416.88
8.0.200.0040.00416.96
8.0.190.0080.00016.95
8.0.180.0040.00416.87
8.0.170.0040.00416.94
8.0.160.0070.00016.88
8.0.150.0000.00816.91
8.0.140.0050.00216.97
8.0.130.0000.00513.46
8.0.120.0050.00216.96
8.0.110.0070.00016.77
8.0.100.0030.00516.88
8.0.90.0000.00816.97
8.0.80.0070.01017.11
8.0.70.0040.00417.04
8.0.60.0040.00417.04
8.0.50.0040.00417.03
8.0.30.0070.01417.11
8.0.20.0090.01017.40
8.0.10.0040.00417.21
8.0.00.0120.01416.77
7.4.330.0000.00514.71
7.4.320.0030.00316.60
7.4.300.0040.00416.63
7.4.290.0000.00716.67
7.4.280.0030.00316.47
7.4.270.0030.00316.55
7.4.260.0050.00013.33
7.4.250.0000.00816.38
7.4.240.0030.00416.52
7.4.230.0070.00016.65
7.4.220.0090.00916.64
7.4.210.0080.00716.54
7.4.200.0030.00516.65
7.4.190.0000.00716.61
7.4.160.0080.00816.54
7.4.150.0060.01217.40
7.4.140.0120.00917.86
7.4.130.0100.00716.54
7.4.120.0150.00516.53
7.4.110.0140.00316.51
7.4.100.0040.00916.55
7.4.90.0000.01816.43
7.4.80.0140.00619.37
7.4.70.0090.01216.39
7.4.60.0070.01016.74
7.4.50.0040.00816.67
7.4.40.0060.00922.52
7.4.30.0030.01316.32
7.4.00.0070.01014.95
7.3.330.0000.00513.24
7.3.320.0030.00313.38
7.3.310.0000.00816.24
7.3.300.0000.00716.35
7.3.290.0060.01016.40
7.3.280.0070.00816.36
7.3.270.0090.00917.40
7.3.260.0170.00718.24
7.3.250.0130.00516.45
7.3.240.0110.01216.37
7.3.230.0080.00816.46
7.3.210.0160.00016.52
7.3.200.0060.01819.39
7.3.190.0070.01716.49
7.3.180.0100.00716.38
7.3.170.0100.01016.39
7.3.160.0050.01116.45
7.3.120.0110.00314.72
7.2.330.0100.00716.68
7.2.320.0140.00716.60
7.2.310.0070.01116.79
7.2.300.0060.01216.70
7.2.290.0180.00016.75
7.2.120.0060.01216.91
7.2.110.0050.00516.49
7.2.100.0100.00616.74
7.2.90.0040.00416.90
7.2.80.0040.01116.74
7.2.70.0130.00017.04
7.2.60.0070.00917.01
7.2.50.0110.00316.98
7.2.40.0040.00716.74
7.2.30.0000.00817.17
7.2.20.0100.00716.81
7.2.10.0030.01216.96
7.2.00.0040.00918.26
7.1.240.0070.00315.73
7.1.230.0050.00315.66
7.1.220.0000.01315.84
7.1.210.0040.01115.74
7.1.200.0160.00615.52
7.1.190.0140.00015.95
7.1.180.0000.01415.46
7.1.170.0030.00715.83
7.1.160.0000.00915.68
7.1.150.0030.00715.75
7.1.140.0000.01115.63
7.1.130.0040.01115.77
7.1.120.0090.00615.40
7.1.110.0100.00315.88
7.1.100.0060.00616.73
7.1.90.0090.00615.81
7.1.80.0060.00615.79
7.1.70.0040.00716.53
7.1.60.0050.00917.61
7.1.50.0090.00916.22
7.1.40.0030.00315.64
7.1.30.0080.00415.55
7.1.20.0060.00615.48
7.1.10.0060.00815.72
7.1.00.0030.04219.01
7.0.320.0120.00315.54
7.0.310.0030.00715.57
7.0.300.0040.00815.60
7.0.290.0080.00015.43
7.0.280.0030.00615.50
7.0.270.0040.00415.35
7.0.260.0040.00715.55
7.0.250.0060.00315.45
7.0.240.0030.00615.07
7.0.230.0000.01315.38
7.0.220.0030.01015.16
7.0.210.0080.00415.18
7.0.200.0040.00515.83
7.0.190.0040.01115.43
7.0.180.0060.00615.18
7.0.170.0030.00315.46
7.0.160.0100.00315.13
7.0.150.0030.01015.52
7.0.140.0090.03518.70
7.0.130.0060.00315.32
7.0.120.0120.00315.30
7.0.110.0040.00415.54
7.0.100.0030.00915.30
7.0.90.0070.00315.27
7.0.80.0170.02217.77
7.0.70.0270.02317.75
7.0.60.0280.03517.55
7.0.50.0320.04217.74
7.0.40.0050.04516.66
7.0.30.0050.03116.87
7.0.20.0110.04016.75
7.0.10.0120.03816.80
7.0.00.0060.02816.68
5.6.380.0060.00614.62
5.6.370.0000.01313.91
5.6.360.0030.00714.48
5.6.350.0060.00314.64
5.6.340.0100.00314.48
5.6.330.0000.01414.37
5.6.320.0040.00814.11
5.6.310.0060.00614.53
5.6.300.0080.00014.54
5.6.290.0030.00614.34
5.6.280.0090.03617.81
5.6.270.0060.00914.41
5.6.260.0000.01414.60
5.6.250.0070.00314.35
5.6.240.0000.01314.34
5.6.230.0080.02217.38
5.6.220.0080.04317.62
5.6.210.0070.04517.50
5.6.200.0060.05017.75
5.6.190.0050.04717.63
5.6.180.0070.03717.69
5.6.170.0080.04717.68
5.6.160.0070.02317.62
5.6.150.0060.02417.61
5.6.140.0000.04617.66
5.6.130.0070.04517.67
5.6.120.0030.04517.66
5.6.110.0060.03817.70
5.6.100.0110.03817.70
5.6.90.0100.03717.58
5.6.80.0050.04817.21
5.6.70.0030.03417.53
5.6.60.0030.03017.37
5.6.50.0050.04217.46
5.6.40.0150.04017.51
5.6.30.0070.03017.51
5.6.20.0030.04617.46
5.6.10.0070.03117.28
5.6.00.0080.04217.40
5.5.380.0120.00011.33
5.5.370.0060.02215.86
5.5.360.0020.02715.90
5.5.350.0110.03815.83
5.5.340.0070.04316.09
5.5.330.0070.03016.10
5.5.320.0110.03116.04
5.5.310.0100.03016.10
5.5.300.0100.03516.08
5.5.290.0070.03016.02
5.5.280.0080.04116.02
5.5.270.0120.03816.03
5.5.260.0020.04616.07
5.5.250.0060.03015.99
5.5.240.0030.04015.75
5.5.230.0030.04415.76
5.5.220.0060.03015.69
5.5.210.0050.02915.74
5.5.200.0080.02515.79
5.5.190.0110.03315.67
5.5.180.0080.02215.72
5.5.170.0030.01014.44
5.5.160.0090.03815.77
5.5.150.0030.04015.77
5.5.140.0050.04215.78
5.5.130.0050.03415.72
5.5.120.0070.04115.71
5.5.110.0030.04415.67
5.5.100.0050.02415.70
5.5.90.0060.04015.67
5.5.80.0080.04215.67
5.5.70.0040.04215.71
5.5.60.0030.03415.67
5.5.50.0090.02615.69
5.5.40.0100.04115.71
5.5.30.0060.04015.68
5.5.20.0030.04515.67
5.5.10.0100.04415.66
5.5.00.0100.04015.69
5.4.450.0070.02515.24
5.4.440.0020.04715.32
5.4.430.0070.03915.32
5.4.420.0030.04415.31
5.4.410.0090.03815.30
5.4.400.0070.04215.15
5.4.390.0050.03015.18
5.4.380.0060.04115.24
5.4.370.0030.02815.07
5.4.360.0030.03315.07
5.4.350.0050.03915.25
5.4.340.0050.03715.09
5.4.330.0040.00811.27
5.4.320.0050.04515.07
5.4.310.0100.03715.15
5.4.300.0020.04015.20
5.4.290.0120.03815.11
5.4.280.0050.04215.15
5.4.270.0050.04015.25
5.4.260.0050.03715.18
5.4.250.0030.03615.05
5.4.240.0100.03515.15
5.4.230.0070.03315.15
5.4.220.0040.03815.19
5.4.210.0060.03315.20
5.4.200.0070.02915.15
5.4.190.0090.03715.17
5.4.180.0130.03215.20
5.4.170.0030.04315.20
5.4.160.0050.04215.17
5.4.150.0050.03815.14
5.4.140.0050.04013.85
5.4.130.0050.04013.88
5.4.120.0060.04113.73
5.4.110.0000.03613.81
5.4.100.0070.03913.88
5.4.90.0020.04013.80
5.4.80.0060.04013.84
5.4.70.0130.03313.86
5.4.60.0070.03713.88
5.4.50.0080.04513.83
5.4.40.0070.04013.90
5.4.30.0050.02413.87
5.4.20.0060.03913.80
5.4.10.0080.04113.83
5.4.00.0050.03513.70
5.3.290.0070.03713.70
5.3.280.0050.02413.70
5.3.270.0080.02513.70
5.3.260.0100.03213.70
5.3.250.0050.04113.70
5.3.240.0070.03913.70
5.3.230.0070.03913.70
5.3.220.0120.03913.70
5.3.210.0080.02513.70
5.3.200.0110.03613.70
5.3.190.0050.04213.70
5.3.180.0090.03213.70
5.3.170.0050.03813.70
5.3.160.0020.04313.70
5.3.150.0020.04113.70
5.3.140.0040.03913.70
5.3.130.0030.04113.70
5.3.120.0080.03213.70
5.3.110.0020.03013.70
5.3.100.0080.03613.70
5.3.90.0080.03613.70
5.3.80.0020.03213.70
5.3.70.0040.04213.70
5.3.60.0080.03913.70
5.3.50.0030.03913.70
5.3.40.0040.03013.70
5.3.30.0050.04013.70
5.3.20.0070.03713.70
5.3.10.0030.04013.70
5.3.00.0040.03813.70
5.2.170.0050.02313.70
5.2.160.0020.02613.70
5.2.150.0080.03213.70
5.2.140.0080.01813.70
5.2.130.0020.03513.70
5.2.120.0070.03213.70
5.2.110.0070.03213.70
5.2.100.0020.03613.70
5.2.90.0060.03313.70
5.2.80.0030.03413.70
5.2.70.0060.03313.70
5.2.60.0070.02713.70
5.2.50.0170.02113.70
5.2.40.0050.02713.70
5.2.30.0050.03413.70
5.2.20.0030.02713.70
5.2.10.0060.03113.70
5.2.00.0030.03113.70
5.1.60.0030.02913.70
5.1.50.0050.02513.70
5.1.40.0040.02513.70
5.1.30.0060.02813.70
5.1.20.0000.02813.70
5.1.10.0030.02313.70
5.1.00.0020.03213.70
5.0.50.0020.02213.70
5.0.40.0070.01513.70
5.0.30.0020.03513.70
5.0.20.0050.02313.70
5.0.10.0000.02513.70
5.0.00.0030.03313.70
4.4.90.0030.01713.70
4.4.80.0000.01513.70
4.4.70.0000.01313.70
4.4.60.0040.01213.70
4.4.50.0020.01813.70
4.4.40.0010.02813.70
4.4.30.0000.01613.70
4.4.20.0000.02113.70
4.4.10.0020.01813.70
4.4.00.0050.02713.70
4.3.110.0000.01813.70
4.3.100.0070.01513.70
4.3.90.0020.01713.70
4.3.80.0020.02813.70
4.3.70.0050.01513.70
4.3.60.0020.02013.70
4.3.50.0030.01713.70
4.3.40.0000.02913.70
4.3.30.0050.01713.70
4.3.20.0000.01813.70
4.3.10.0000.02113.70
4.3.00.0030.01313.70

preferences:
52.47 ms | 401 KiB | 5 Q