3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function ($c) { if ('ChildClass' === $c) { class ChildClass extends ParentClass {} } if ('ParentClass' === $c) { throw new \Exception('ParentClass not found.'); } }); try { new ChildClass(); } catch (\Exception $e) { echo $e->getMessage(); }

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.4.20.0080.00018.96
8.4.10.0040.00417.88
8.3.150.0120.00617.33
8.3.140.0160.00318.51
8.3.130.0090.00018.47
8.3.120.0030.00620.56
8.3.110.0060.01320.94
8.3.100.0030.00616.91
8.3.90.0060.00326.77
8.3.80.0040.00416.50
8.3.70.0120.00916.63
8.3.60.0090.00618.56
8.3.50.0140.00521.91
8.3.40.0140.00718.89
8.3.30.0000.01418.80
8.3.20.0060.00322.32
8.3.10.0060.00321.96
8.3.00.0070.00022.40
8.2.270.0140.00417.36
8.2.260.0130.00716.61
8.2.250.0050.00318.56
8.2.240.0100.00017.30
8.2.230.0040.00422.58
8.2.220.0030.00637.54
8.2.210.0030.01726.77
8.2.200.0000.01016.63
8.2.190.0170.00316.63
8.2.180.0140.00725.92
8.2.170.0110.00419.05
8.2.160.0110.00422.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00419.73
8.2.110.0130.00321.00
8.2.100.0090.00317.84
8.2.90.0040.00417.84
8.2.80.0080.00018.01
8.2.70.0080.00017.80
8.2.60.0000.01118.09
8.2.50.0030.00618.10
8.2.40.0080.00019.11
8.2.30.0050.00219.25
8.2.20.0040.00417.98
8.2.10.0040.00419.32
8.2.00.0040.00419.30
8.1.310.0070.01116.43
8.1.300.0070.01118.59
8.1.290.0030.00630.84
8.1.280.0070.01025.92
8.1.270.0060.00324.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.84
8.1.230.0080.00422.61
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0040.00717.36
8.1.190.0000.00817.23
8.1.180.0090.00218.10
8.1.170.0090.00018.39
8.1.160.0000.00918.76
8.1.150.0050.00218.93
8.1.140.0000.00720.83
8.1.130.0030.00320.13
8.1.120.0050.00517.53
8.1.110.0000.00717.46
8.1.100.0000.00817.47
8.1.90.0030.00917.44
8.1.80.0040.00317.36
8.1.70.0040.00417.32
8.1.60.0000.00817.57
8.1.50.0030.00517.52
8.1.40.0000.00917.50
8.1.30.0040.00417.68
8.1.20.0080.00017.63
8.1.10.0040.00417.52
8.1.00.0000.00817.48
8.0.300.0000.00721.61
8.0.290.0000.00816.75
8.0.280.0000.00718.50
8.0.270.0070.00016.94
8.0.260.0030.00322.00
8.0.250.0000.00717.00
8.0.240.0000.00616.92
8.0.230.0000.00616.99
8.0.220.0070.00016.87
8.0.210.0000.00717.01
8.0.200.0030.00316.90
8.0.190.0000.00716.99
8.0.180.0000.00817.00
8.0.170.0060.00316.88
8.0.160.0040.00417.01
8.0.150.0000.00716.90
8.0.140.0070.00016.80
8.0.130.0030.00313.39
8.0.120.0040.00416.89
8.0.110.0000.00716.82
8.0.100.0040.00416.91
8.0.90.0040.00416.81
8.0.80.0000.01416.84
8.0.70.0000.00816.83
8.0.60.0000.00716.79
8.0.50.0060.00316.80
8.0.30.0120.00716.94
8.0.20.0090.00917.11
8.0.10.0030.00517.05
8.0.00.0130.00716.85
7.4.330.0000.00516.66
7.4.320.0040.00416.40
7.4.300.0040.00416.45
7.4.290.0080.00016.42
7.4.280.0050.00316.60
7.4.270.0030.00316.58
7.4.260.0000.00513.28
7.4.250.0000.00816.39
7.4.240.0040.00416.61
7.4.230.0050.00216.55
7.4.220.0020.00516.56
7.4.210.0070.00716.54
7.4.200.0070.00016.31
7.4.130.0160.00316.47
7.4.120.0090.01116.43
7.4.110.0100.00916.47
7.4.100.0100.01016.64
7.4.90.0100.00716.52
7.4.80.0120.01219.39
7.4.70.0120.00916.13
7.4.60.0070.01316.05
7.4.50.0130.00816.11
7.4.40.0090.01016.20
7.4.30.0110.01016.04
7.4.20.0100.01316.10
7.4.10.0100.01316.18
7.4.00.0070.01115.83
7.3.330.0000.00716.39
7.3.320.0050.00013.36
7.3.310.0070.00016.23
7.3.300.0000.00716.37
7.3.290.0000.00716.24
7.3.280.0170.00516.24
7.3.260.0110.01116.42
7.3.240.0090.01216.45
7.3.230.0140.00316.49
7.3.210.0070.01016.29
7.3.200.0110.01216.36
7.3.190.0120.00916.27
7.3.180.0100.00816.29
7.3.170.0120.00716.28
7.3.160.0100.01216.16
7.3.150.0170.00716.22
7.3.140.0090.01016.19
7.3.130.0150.00516.21
7.3.120.0130.00615.77
7.3.110.0110.00815.85
7.3.100.0110.00915.74
7.3.90.0090.01115.63
7.3.80.0080.00915.18
7.3.70.0080.01015.11
7.3.60.0110.00615.09
7.3.50.0090.00815.19
7.3.40.0080.00915.21
7.3.30.0110.00615.13
7.3.20.0100.00716.46
7.3.10.0130.00816.49
7.3.00.0130.00716.51
7.2.330.0100.01016.86
7.2.320.0130.00316.37
7.2.310.0080.01016.56
7.2.300.0110.00816.34
7.2.290.0090.01116.51
7.2.280.0120.01016.55
7.2.270.0130.00916.36
7.2.260.0120.00716.41
7.2.250.0130.00816.06
7.2.240.0060.01415.93
7.2.230.0100.00815.88
7.2.220.0100.00915.90
7.2.210.0070.00915.32
7.2.200.0080.00915.31
7.2.190.0070.01115.34
7.2.180.0110.00715.38
7.2.170.0090.01015.39
7.2.160.0110.00715.45
7.2.150.0090.01216.80
7.2.140.0120.01016.68
7.2.130.0130.01216.74
7.2.120.0150.01216.61
7.2.110.0160.00816.62
7.2.100.0130.00816.64
7.2.90.0120.00916.65
7.2.80.0120.00916.74
7.2.70.0130.00916.67
7.2.60.0110.00816.76
7.2.50.0110.01016.61
7.2.40.0100.00916.70
7.2.30.0100.01116.77
7.2.20.0130.00916.65
7.2.10.0130.01016.62
7.2.00.0200.00616.68
7.1.330.0160.00716.74
7.1.320.0140.00416.73
7.1.310.0090.00715.70
7.1.300.0110.00715.64
7.1.290.0130.00515.69
7.1.280.0250.00715.68
7.1.270.0090.00715.61
7.1.260.0090.00915.64
7.1.250.0160.00715.58
7.1.240.0130.01616.10
7.1.230.0110.01415.98
7.1.220.0120.01316.13
7.1.210.0140.00716.04
7.1.200.0160.00716.12
7.1.190.0130.00515.99
7.1.180.0070.01315.99
7.1.170.0110.00916.10
7.1.160.0110.00716.08
7.1.150.0120.00716.01
7.1.140.0110.00816.08
7.1.130.0100.00916.13
7.1.120.0120.00616.07
7.1.110.0100.00916.03
7.1.100.0100.00716.05
7.1.90.0110.01016.03
7.1.80.0110.00616.07
7.1.70.0120.00616.04
7.1.60.0090.01016.04
7.1.50.0110.00916.14
7.1.40.0110.00916.00
7.1.30.0140.00816.15
7.1.20.0120.00916.00
7.1.10.0100.00916.12
7.1.00.0120.00716.08
7.0.330.0210.02216.96
7.0.320.0100.00616.95
7.0.310.0110.00816.95
7.0.300.0070.01416.96
7.0.290.0130.00516.95
7.0.280.0100.01017.08
7.0.270.0100.00717.01
7.0.260.0180.02416.95
7.0.250.0040.01217.15
7.0.240.0060.01317.05
7.0.230.0130.00317.00
7.0.220.0030.01417.13
7.0.210.0070.00717.16
7.0.200.0090.00616.96
7.0.190.0080.00817.01
7.0.180.0070.01016.97
7.0.170.0110.00616.91
7.0.160.0080.00816.99
7.0.150.0060.00917.05
7.0.140.0160.01617.09
7.0.130.0030.01417.12
7.0.120.0060.01116.91
7.0.110.0030.01317.18
7.0.100.0090.00617.00
7.0.90.0050.01117.14
7.0.80.0070.01017.07
7.0.70.0120.00617.23
7.0.60.0140.00417.07
7.0.50.0120.00817.08
7.0.40.0090.01216.95
7.0.30.0060.01017.07
7.0.20.0230.00316.98
7.0.10.0090.00917.07
7.0.00.0060.01116.84
5.6.400.0060.01215.81
5.6.390.0140.03316.18
5.6.380.0110.00816.20
5.6.370.0060.01915.66
5.6.360.0220.01915.88
5.6.350.0150.00615.95
5.6.340.0200.00316.17
5.6.330.0120.00915.92
5.6.320.0090.00915.96
5.6.310.0080.01115.87
5.6.300.0080.01215.99
5.6.290.0130.01015.98
5.6.280.0090.00915.88
5.6.270.0160.00415.75
5.6.260.0130.00615.93
5.6.250.0130.00516.00
5.6.240.0110.00716.10
5.6.230.0170.00215.97
5.6.220.0110.00715.91
5.6.210.0180.00615.97
5.6.200.0060.01215.82
5.6.190.0000.02415.93
5.6.180.0070.01515.79
5.6.170.0120.01215.81
5.6.160.0140.00715.71
5.6.150.0150.01515.62
5.6.140.0060.01615.88
5.6.130.0060.01415.67
5.6.120.0080.01516.11
5.6.110.0070.01216.00
5.6.100.0090.00916.00
5.6.90.0140.00615.93
5.6.80.0130.00615.97
5.6.70.0100.01415.70
5.6.60.0210.00315.68
5.6.50.0240.00715.79
5.6.40.0180.01215.79
5.6.30.0060.01515.79
5.6.20.0140.00716.07
5.6.10.0170.00715.78
5.6.00.0120.00815.79
5.5.380.0030.01615.69
5.5.370.0140.00915.88
5.5.360.0100.01015.93
5.5.350.0150.01115.86
5.5.340.0030.02016.00
5.5.330.0070.01715.71
5.5.320.0210.00016.00
5.5.310.0150.00615.68
5.5.300.0090.00916.11
5.5.290.0110.00715.94
5.5.280.0080.01115.67
5.5.270.0110.00815.71
5.5.260.0100.01015.83
5.5.250.0050.01315.95
5.5.240.0040.01415.57
5.5.230.0170.00715.65
5.5.220.0140.01215.64
5.5.210.0340.00015.77
5.5.200.0190.01215.86
5.5.190.0210.00915.76
5.5.180.0160.01315.96
5.5.170.0400.00615.83
5.5.160.0140.01115.80
5.5.150.0220.00815.80
5.5.140.0300.00315.83
5.5.130.0110.02215.78
5.5.120.0090.00915.79
5.5.110.0140.01815.91
5.5.100.0210.00315.83
5.5.90.0100.01715.84
5.5.80.0080.01315.52
5.5.70.0150.01015.88
5.5.60.0060.01315.51
5.5.50.0130.01415.73
5.5.40.0070.02215.73
5.5.30.0240.00615.81
5.5.20.0170.00415.58
5.5.10.0330.00015.83
5.5.00.0150.00915.70
5.4.450.0040.01212.75
5.4.440.0090.00912.82
5.4.430.0070.00712.80
5.4.420.0080.00812.74
5.4.410.0070.01012.67
5.4.400.0030.01112.82
5.4.390.0090.00912.38
5.4.380.0170.00712.60
5.4.370.0110.00512.45
5.4.360.0190.00612.47
5.4.350.0180.00612.69
5.4.340.0080.01112.53
5.4.330.0140.01012.61
5.4.320.0190.00612.68
5.4.310.0140.00912.57
5.4.300.0140.00512.39
5.4.290.0030.01012.42
5.4.280.0120.00912.63
5.4.270.0260.00012.43
5.4.260.0110.00912.73
5.4.250.0230.00012.61
5.4.240.0140.00512.76
5.4.230.0230.00012.69
5.4.220.0110.00412.55
5.4.210.0150.00812.31
5.4.200.0170.00812.59
5.4.190.0160.00912.64
5.4.180.0180.00512.38
5.4.170.0200.00812.83
5.4.160.0060.01112.48
5.4.150.0000.01312.59
5.4.140.0050.01012.53
5.4.130.0110.00412.55
5.4.120.0120.00712.64
5.4.110.0110.01112.40
5.4.100.0130.00713.00
5.4.90.0100.01112.58
5.4.80.0170.00712.73
5.4.70.0080.00512.88
5.4.60.0210.00412.70
5.4.50.0140.01512.66
5.4.40.0080.01112.72
5.4.30.0140.00312.56
5.4.20.0130.00612.71
5.4.10.0110.00312.79
5.4.00.0120.01212.66
5.3.290.0060.00913.15
5.3.280.0110.01213.03
5.3.270.0130.01012.94
5.3.260.0120.01213.11
5.3.250.0040.01113.10
5.3.240.0090.00512.98
5.3.230.0100.01512.90
5.3.220.0180.02312.89
5.3.210.0160.01312.84
5.3.200.0110.00812.93
5.3.190.0140.01013.09
5.3.180.0130.00813.13
5.3.170.0080.00813.04
5.3.160.0100.01013.02
5.3.150.0080.01113.10
5.3.140.0180.00313.11
5.3.130.0080.00813.00
5.3.120.0090.00613.15
5.3.110.0100.00513.08
5.3.100.0160.00813.10
5.3.90.0130.00913.03
5.3.80.0120.01213.06
5.3.70.0120.01213.05
5.3.60.0100.01313.01
5.3.50.0070.01113.13
5.3.40.0150.00913.08
5.3.30.0030.01713.00
5.3.20.0030.01413.07
5.3.10.0120.00512.92
5.3.00.0050.02112.92
5.2.170.0180.00411.90
5.2.160.0060.01111.90
5.2.150.0080.01011.90
5.2.140.0040.01211.90
5.2.130.0080.00411.90
5.2.120.0070.01111.90
5.2.110.0000.01211.90
5.2.100.0170.00011.90
5.2.90.0000.01311.90
5.2.80.0120.00911.90
5.2.70.0070.01711.90
5.2.60.0150.00411.90
5.2.50.0000.01511.90
5.2.40.0030.01011.93
5.2.30.0030.00911.90
5.2.20.0000.01711.90
5.2.10.0040.00911.90
5.2.00.0110.00511.90
5.1.60.0070.01411.90
5.1.50.0130.00311.90
5.1.40.0100.00511.90
5.1.30.0030.00811.90
5.1.20.0160.01011.90
5.1.10.0110.00811.90
5.1.00.0120.00711.90
5.0.50.0050.00611.90
5.0.40.0080.01211.90
5.0.30.0100.00311.90
5.0.20.0140.00011.90
5.0.10.0070.00511.90
5.0.00.0100.00311.90
4.4.90.0090.00211.90
4.4.80.0090.00011.90
4.4.70.0020.00211.90
4.4.60.0060.00311.90
4.4.50.0050.00311.90
4.4.40.0080.00011.90
4.4.30.0060.00311.90
4.4.20.0060.00311.90
4.4.10.0070.00311.90
4.4.00.0080.00011.90
4.3.110.0070.00011.90
4.3.100.0070.00211.90
4.3.90.0060.00311.90
4.3.80.0030.00611.90
4.3.70.0100.00011.90
4.3.60.0050.00311.90
4.3.50.0040.00211.90
4.3.40.0030.00311.90
4.3.30.0070.00011.90
4.3.20.0040.00211.90
4.3.10.0020.00211.90
4.3.00.0000.00811.90

preferences:
29.41 ms | 403 KiB | 5 Q