3v4l.org

run code in 300+ PHP versions simultaneously
<?php $handler = function() { echo 'error handler!'; throw new \ErrorException(); }; set_error_handler($handler); register_shutdown_function($handler); try { fatal_error(); } catch (\Exception $e) { echo 'caught!'; } echo 'done';

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.01316.63
8.3.50.0140.00622.04
8.3.40.0040.01518.80
8.3.30.0030.01019.05
8.3.20.0080.00020.11
8.3.10.0000.00823.61
8.3.00.0080.00019.26
8.2.180.0120.00916.63
8.2.170.0110.00722.96
8.2.160.0030.01020.38
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0150.00326.16
8.2.120.0040.00422.26
8.2.110.0070.01022.13
8.2.100.0080.00417.91
8.2.90.0060.00319.17
8.2.80.0000.00918.05
8.2.70.0030.00517.50
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0030.00619.95
8.2.30.0040.00419.98
8.2.20.0020.00517.73
8.2.10.0000.00718.12
8.2.00.0030.00717.62
8.1.280.0070.00725.92
8.1.270.0030.00624.00
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00323.91
8.1.230.0000.01118.78
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0040.00417.13
8.1.180.0030.00618.10
8.1.170.0000.00818.59
8.1.160.0000.01022.00
8.1.150.0080.00018.64
8.1.140.0000.00717.37
8.1.130.0000.00717.84
8.1.120.0000.00817.46
8.1.110.0060.00317.32
8.1.100.0000.00717.46
8.1.90.0000.00717.48
8.1.80.0040.00417.48
8.1.70.0000.00717.42
8.1.60.0080.00017.46
8.1.50.0000.00817.52
8.1.40.0030.00617.43
8.1.30.0000.00817.64
8.1.20.0070.00017.58
8.1.10.0040.00417.61
8.1.00.0060.00317.52
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0000.00718.36
8.0.270.0040.00417.23
8.0.260.0060.00017.16
8.0.250.0040.00417.02
8.0.240.0070.00016.83
8.0.230.0080.00016.98
8.0.220.0060.00016.84
8.0.210.0000.00716.90
8.0.200.0030.00617.00
8.0.190.0060.00316.93
8.0.180.0000.00717.00
8.0.170.0040.00416.99
8.0.160.0080.00016.91
8.0.150.0040.00416.88
8.0.140.0000.00916.93
8.0.130.0000.00613.36
8.0.120.0040.00416.91
8.0.110.0000.00716.91
8.0.100.0040.00416.81
8.0.90.0070.00016.88
8.0.80.0100.00717.01
8.0.70.0000.00816.82
8.0.60.0040.00416.91
8.0.50.0050.00216.89
8.0.30.0100.00817.14
8.0.20.0110.00717.40
8.0.10.0050.00317.10
8.0.00.0120.00616.78
7.4.330.0020.00215.08
7.4.320.0060.00016.40
7.4.300.0030.00316.39
7.4.290.0070.00016.46
7.4.280.0070.00016.50
7.4.270.0030.00316.43
7.4.260.0000.00716.43
7.4.250.0040.00416.45
7.4.240.0020.00516.53
7.4.230.0000.00716.41
7.4.220.0170.00016.61
7.4.210.0060.01116.62
7.4.200.0050.00216.69
7.4.190.0070.00016.68
7.4.160.0060.00916.57
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0100.00816.57
7.4.120.0090.00816.40
7.4.110.0110.00916.50
7.4.100.0190.00616.48
7.4.90.0100.00716.43
7.4.80.0030.01319.39
7.4.70.0070.01016.44
7.4.60.0060.00916.57
7.4.50.0000.00716.52
7.4.40.0030.00722.77
7.4.30.0110.00516.41
7.4.10.0070.01015.14
7.4.00.0100.00415.04
7.3.330.0000.00513.16
7.3.320.0000.00813.29
7.3.310.0000.00716.36
7.3.300.0070.00016.30
7.3.290.0160.00316.21
7.3.280.0110.00716.26
7.3.270.0140.00317.40
7.3.260.0070.01016.39
7.3.250.0090.00816.56
7.3.240.0070.01016.34
7.3.230.0150.00716.40
7.3.210.0100.00716.43
7.3.200.0130.00719.39
7.3.190.0120.00916.36
7.3.180.0060.00916.48
7.3.170.0100.01016.32
7.3.160.0060.01616.30
7.3.130.0090.00914.90
7.3.120.0080.00814.76
7.3.110.0100.01014.63
7.3.100.0030.01014.79
7.3.90.0080.00814.98
7.3.80.0150.00014.67
7.3.70.0070.00714.81
7.3.60.0070.01014.87
7.3.50.0080.00014.84
7.3.40.0060.00614.91
7.3.30.0090.00314.85
7.3.20.0030.01416.63
7.3.10.0080.00716.35
7.3.00.0030.00716.58
7.2.330.0060.01316.62
7.2.320.0030.01516.27
7.2.310.0090.00916.57
7.2.300.0160.00016.63
7.2.290.0080.01316.39
7.2.260.0110.00714.72
7.2.250.0030.01514.83
7.2.240.0050.00514.87
7.2.230.0030.01015.11
7.2.220.0030.01015.07
7.2.210.0060.00914.82
7.2.200.0080.00814.84
7.2.190.0030.00615.12
7.2.180.0030.01015.14
7.2.170.0090.00615.00
7.2.160.0030.01314.98
7.2.150.0030.01416.86
7.2.140.0050.00516.76
7.2.130.0060.00816.62
7.2.120.0070.00516.69
7.2.110.0110.00416.77
7.2.100.0070.00416.91
7.2.90.0040.01116.82
7.2.80.0080.00716.90
7.2.70.0070.00716.86
7.2.60.0080.00616.84
7.2.50.0060.00716.88
7.2.40.0050.00916.74
7.2.30.0030.01216.91
7.2.20.0050.00916.88
7.2.10.0070.00516.79
7.2.00.0070.00817.48
7.1.330.0070.00715.77
7.1.320.0060.01215.61
7.1.310.0000.00915.91
7.1.300.0000.01215.77
7.1.290.0030.01015.66
7.1.280.0070.00715.87
7.1.270.0060.00915.77
7.1.260.0060.00615.66
7.1.250.0050.00915.76
7.1.240.0030.00915.80
7.1.230.0070.01115.72
7.1.220.0070.00715.84
7.1.210.0000.01715.71
7.1.200.0050.00915.87
7.1.190.0090.00015.71
7.1.180.0030.01015.57
7.1.170.0000.01315.86
7.1.160.0000.01815.80
7.1.150.0060.01215.95
7.1.140.0000.01415.82
7.1.130.0040.01115.86
7.1.120.0060.00915.67
7.1.110.0030.01315.75
7.1.100.0060.00616.81
7.1.90.0060.01015.83
7.1.80.0040.01115.95
7.1.70.0070.00316.32
7.1.60.0100.01317.63
7.1.50.0060.01116.43
7.1.40.0030.00915.76
7.1.30.0090.00315.82
7.1.20.0090.00415.72
7.1.10.0070.00715.56
7.1.00.0020.04319.13
7.0.330.0030.01015.32
7.0.320.0100.00615.49
7.0.310.0000.01515.29
7.0.300.0090.00315.19
7.0.290.0030.01315.42
7.0.280.0030.00715.52
7.0.270.0030.00615.41
7.0.260.0040.01115.34
7.0.250.0080.00615.57
7.0.240.0000.00915.57
7.0.230.0100.00015.45
7.0.220.0030.01015.27
7.0.210.0110.00415.36
7.0.200.0080.00715.94
7.0.190.0120.00315.39
7.0.180.0060.00315.52
7.0.170.0060.00615.33
7.0.160.0070.00715.34
7.0.150.0170.00015.16
7.0.140.0020.04218.66
7.0.130.0000.01215.29
7.0.120.0060.00615.59
7.0.110.0000.01515.54
7.0.100.0100.02817.53
7.0.90.0160.04017.72
7.0.80.0080.02717.64
7.0.70.0100.02017.60
7.0.60.0070.04517.59
7.0.50.0080.02317.93
7.0.40.0040.02716.88
7.0.30.0070.04316.75
7.0.20.0030.04816.58
7.0.10.0050.04616.77
7.0.00.0000.04316.80
5.6.400.0060.00914.18
5.6.390.0040.01114.57
5.6.380.0000.01414.50
5.6.370.0090.00314.43
5.6.360.0030.00614.57
5.6.350.0060.00914.02
5.6.340.0040.00714.47
5.6.330.0070.00714.33
5.6.320.0080.00414.66
5.6.310.0040.01114.27
5.6.300.0040.01414.11
5.6.290.0060.00314.29
5.6.280.0030.04017.72
5.6.270.0070.01014.59
5.6.260.0030.01314.40
5.6.250.0070.04717.57
5.6.240.0080.04217.51
5.6.230.0090.02917.42
5.6.220.0070.04717.47
5.6.210.0100.02517.33
5.6.200.0050.04317.82
5.6.190.0070.02817.79
5.6.180.0120.04017.55
5.6.170.0080.04817.77
5.6.160.0090.04417.62
5.6.150.0080.04317.52
5.6.140.0110.03817.73
5.6.130.0070.04717.70
5.6.120.0060.02617.67
5.6.110.0050.04517.69
5.6.100.0070.04417.75
5.6.90.0080.04217.56
5.6.80.0050.03617.37
5.6.70.0100.02417.25
5.6.60.0050.04617.36
5.6.50.0050.04517.25
5.6.40.0050.04217.34
5.6.30.0050.04417.38
5.6.20.0080.03817.32
5.6.10.0110.03717.37
5.6.00.0080.04117.37
5.5.380.0060.04617.26
5.5.370.0080.03817.32
5.5.360.0090.04417.15
5.5.350.0050.04917.07
5.5.340.0090.04417.39
5.5.330.0020.04717.60
5.5.320.0100.04517.65
5.5.310.0050.03017.69
5.5.300.0100.04417.62
5.5.290.0040.04117.45
5.5.280.0090.04517.53
5.5.270.0090.03917.56
5.5.260.0080.02517.68
5.5.250.0050.02917.41
5.5.240.0090.04217.34
5.5.230.0030.04917.18
5.5.220.0110.03317.30
5.5.210.0030.04317.17
5.5.200.0070.02517.01
5.5.190.0110.03717.22
5.5.180.0100.04117.15
5.5.170.0030.00614.18
5.5.160.0030.04717.28
5.5.150.0050.04317.17
5.5.140.0050.04516.90
5.5.130.0080.04017.06
5.5.120.0120.03717.14
5.5.110.0120.03417.07
5.5.100.0090.03817.24
5.5.90.0100.02216.99
5.5.80.0080.02517.10
5.5.70.0070.04317.01
5.5.60.0160.03416.96
5.5.50.0030.04317.11
5.5.40.0110.02317.23
5.5.30.0080.04116.90
5.5.20.0000.04917.13
5.5.10.0050.04717.20
5.5.00.0080.03517.15
5.4.450.0060.04615.73
5.4.440.0060.04315.83
5.4.430.0050.04415.76
5.4.420.0030.02815.82
5.4.410.0100.02715.79
5.4.400.0070.03815.72
5.4.390.0070.04015.61
5.4.380.0030.03715.57
5.4.370.0050.04015.59
5.4.360.0120.03715.62
5.4.350.0070.03815.73
5.4.340.0050.04215.71
5.4.330.0000.00612.29
5.4.320.0040.03515.77
5.4.310.0070.04115.60
5.4.300.0100.03515.72
5.4.290.0050.04315.57
5.4.280.0070.04015.65
5.4.270.0080.03715.71
5.4.260.0080.03715.72
5.4.250.0070.04015.70
5.4.240.0070.03715.74
5.4.230.0090.03215.70
5.4.220.0020.03215.69
5.4.210.0050.04115.57
5.4.200.0070.04315.56
5.4.190.0050.04515.72
5.4.180.0040.04015.66
5.4.170.0090.03715.73
5.4.160.0050.04015.57
5.4.150.0050.02515.61
5.4.140.0050.01914.35
5.4.130.0060.02014.39
5.4.120.0040.02014.34
5.4.110.0050.02614.41
5.4.100.0030.02314.39
5.4.90.0030.02214.40
5.4.80.0020.02214.35
5.4.70.0050.02014.31
5.4.60.0020.02214.37
5.4.50.0050.02114.30
5.4.40.0060.01814.38
5.4.30.0080.02314.34
5.4.20.0020.02414.29
5.4.10.0020.02314.35
5.4.00.0020.02314.09
5.3.290.0070.04313.47
5.3.280.0060.04613.50
5.3.270.0030.04213.44
5.3.260.0080.02913.45
5.3.250.0060.03613.50
5.3.240.0070.01913.46
5.3.230.0030.02313.50
5.3.220.0040.02313.42
5.3.210.0050.02013.40
5.3.200.0050.01813.40
5.3.190.0050.02013.40
5.3.180.0000.02213.43
5.3.170.0050.02213.39
5.3.160.0070.01813.50
5.3.150.0030.02213.39
5.3.140.0050.02313.48
5.3.130.0050.02213.43
5.3.120.0050.02513.45
5.3.110.0000.02313.41
5.3.100.0040.02013.13
5.3.90.0050.01813.12
5.3.80.0030.01813.18
5.3.70.0020.02913.16
5.3.60.0020.02313.16
5.3.50.0020.02213.13
5.3.40.0060.02313.12
5.3.30.0030.02313.04
5.3.20.0070.01813.03
5.3.10.0060.01812.96
5.3.00.0050.02012.97
5.2.170.0070.02311.10
5.2.160.0030.04311.14
5.2.150.0000.03011.15
5.2.140.0000.03311.09
5.2.130.0030.03011.01
5.2.120.0030.02711.06
5.2.110.0000.03010.93
5.2.100.0000.03011.08
5.2.90.0000.03011.02
5.2.80.0000.03311.11
5.2.70.0030.02311.01
5.2.60.0000.03011.00
5.2.50.0000.03010.80
5.2.40.0000.02310.94
5.2.30.0000.02710.95
5.2.20.0070.02310.75
5.2.10.0030.02710.93
5.2.00.0070.02310.76
5.1.60.0000.0239.87
5.1.50.0000.0279.99
5.1.40.0070.0209.97
5.1.30.0000.03310.37
5.1.20.0030.02310.40
5.1.10.0000.02710.07
5.1.00.0070.05010.06
5.0.50.0000.0208.63
5.0.40.0030.0308.63
5.0.30.0000.0338.63
5.0.20.0070.0278.63
5.0.10.0030.0178.63
5.0.00.0030.0308.63
4.4.90.0000.0178.63
4.4.80.0000.0178.63
4.4.70.0000.0238.63
4.4.60.0000.0178.63
4.4.50.0000.0178.63
4.4.40.0030.0338.63
4.4.30.0000.0178.63
4.4.20.0000.0178.63
4.4.10.0070.0108.63
4.4.00.0000.0238.63
4.3.110.0030.0138.63
4.3.100.0030.0338.63
4.3.90.0030.0138.63
4.3.80.0030.0238.63
4.3.70.0000.0138.63
4.3.60.0000.0138.63
4.3.50.0000.0378.63
4.3.40.0000.0408.63
4.3.30.0000.0208.63
4.3.20.0030.0208.63
4.3.10.0070.0278.63
4.3.00.0070.0308.63

preferences:
45.56 ms | 401 KiB | 5 Q