3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Adult { public static function get() { return new self(); } } class Child extends Adult {} var_dump(get_class_name(Adult::get())); var_dump(get_class_name(Child::get()));

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.0110.00418.31
8.3.50.0090.00621.02
8.3.40.0110.01118.99
8.3.30.0110.00420.38
8.3.20.0070.00720.34
8.3.10.0030.00622.10
8.3.00.0000.00822.57
8.2.180.0110.00416.38
8.2.170.0120.00922.96
8.2.160.0070.01322.27
8.2.150.0130.00324.18
8.2.140.0000.01424.66
8.2.130.0040.00426.16
8.2.120.0030.00620.93
8.2.110.0030.00620.38
8.2.100.0040.00817.78
8.2.90.0030.00518.87
8.2.80.0040.00419.18
8.2.70.0000.00817.50
8.2.60.0000.00817.80
8.2.50.0030.00518.07
8.2.40.0040.00418.10
8.2.30.0030.00319.49
8.2.20.0060.00317.52
8.2.10.0040.00417.79
8.2.00.0000.01217.76
8.1.280.0070.01025.92
8.1.270.0080.00023.99
8.1.260.0150.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.58
8.1.230.0070.00420.89
8.1.220.0050.00318.77
8.1.210.0000.00818.95
8.1.200.0040.00417.10
8.1.190.0000.00817.38
8.1.180.0000.00818.10
8.1.170.0040.00418.46
8.1.160.0040.00418.76
8.1.150.0000.00718.48
8.1.140.0070.00017.37
8.1.130.0030.00317.68
8.1.120.0000.00717.30
8.1.110.0070.00017.21
8.1.100.0040.00417.19
8.1.90.0030.00317.23
8.1.80.0040.00417.19
8.1.70.0030.00317.27
8.1.60.0050.00517.46
8.1.50.0040.00417.46
8.1.40.0070.00017.34
8.1.30.0040.00417.48
8.1.20.0050.00517.55
8.1.10.0000.00817.38
8.1.00.0000.00917.46
8.0.300.0040.00419.89
8.0.290.0000.00717.18
8.0.280.0000.00718.39
8.0.270.0000.00817.19
8.0.260.0000.00716.71
8.0.250.0040.00416.83
8.0.240.0040.00416.97
8.0.230.0000.00817.01
8.0.220.0070.00016.92
8.0.210.0070.00016.86
8.0.200.0030.00316.84
8.0.190.0000.00716.91
8.0.180.0040.00416.89
8.0.170.0040.00416.84
8.0.160.0030.00516.85
8.0.150.0000.00716.73
8.0.140.0070.00016.81
8.0.130.0030.00313.31
8.0.120.0040.00416.73
8.0.110.0030.00516.88
8.0.100.0000.00716.98
8.0.90.0000.00716.89
8.0.80.0060.01016.86
8.0.70.0040.00416.88
8.0.60.0040.00416.79
8.0.50.0050.00316.93
8.0.30.0080.01016.99
8.0.20.0110.00617.40
8.0.10.0040.00416.94
8.0.00.0090.01116.69
7.4.330.0020.00214.98
7.4.320.0000.00616.47
7.4.300.0000.00616.48
7.4.290.0070.00016.56
7.4.280.0030.00316.32
7.4.270.0070.00016.54
7.4.260.0000.00513.16
7.4.250.0000.00716.48
7.4.240.0000.00716.45
7.4.230.0030.00316.58
7.4.220.0070.02016.47
7.4.210.0080.00816.48
7.4.200.0000.00716.39
7.4.190.0000.00716.61
7.4.160.0030.01316.46
7.4.150.0100.00717.40
7.4.140.0160.00517.86
7.4.130.0100.00716.58
7.4.120.0100.01016.42
7.4.110.0070.01116.44
7.4.100.0130.00316.43
7.4.90.0140.00416.29
7.4.80.0120.00619.39
7.4.70.0040.01216.65
7.4.60.0060.01016.50
7.4.50.0000.00816.50
7.4.40.0030.00722.77
7.4.30.0110.00516.35
7.4.00.0030.01314.85
7.3.330.0030.00313.14
7.3.320.0060.00013.30
7.3.310.0040.00216.25
7.3.300.0070.00016.21
7.3.290.0030.01716.29
7.3.280.0070.01016.28
7.3.270.0080.00817.40
7.3.260.0030.01316.56
7.3.250.0070.01016.46
7.3.240.0100.00616.32
7.3.230.0090.00816.39
7.3.210.0130.00316.39
7.3.200.0110.00519.39
7.3.190.0130.00316.50
7.3.180.0000.01616.30
7.3.170.0100.00716.47
7.3.160.0060.00916.38
7.3.120.0090.00614.83
7.2.330.0070.01516.62
7.2.320.0090.01216.57
7.2.310.0300.02216.64
7.2.300.0070.01016.33
7.2.290.0060.01016.46
7.2.60.0060.00316.91
7.2.00.0050.00519.31
7.1.200.0040.00815.49
7.1.100.0000.01117.58
7.1.70.0100.01017.05
7.1.60.0120.01219.21
7.1.50.0000.02016.89
7.1.00.0070.03022.48
7.0.200.0090.00616.35
7.0.140.0070.07022.04
7.0.60.0070.08019.80
7.0.50.0070.06317.87
7.0.40.0070.06020.04
7.0.30.0200.04720.23
7.0.20.0270.07320.26
7.0.10.0100.08720.16
7.0.00.0070.08320.26
5.6.280.0000.07321.12
5.6.210.0070.08020.77
5.6.200.0000.04318.19
5.6.190.0070.04020.48
5.6.180.0530.06720.68
5.6.170.0170.04320.55
5.6.160.0030.05720.54
5.6.150.0130.07718.18
5.6.140.0000.04318.17
5.6.130.0070.08018.18
5.6.120.0100.04021.00
5.6.110.0070.08320.96
5.6.100.0030.08720.97
5.6.90.0030.06020.98
5.6.80.0030.08320.41
5.5.350.4200.04320.47
5.5.340.0070.05317.95
5.5.330.0070.04020.21
5.5.320.0070.05020.27
5.5.310.0370.07320.34
5.5.300.0070.03718.03
5.5.290.0100.08017.97
5.5.280.0100.06020.80
5.5.270.0130.08020.97
5.5.260.0170.07320.96
5.5.250.0100.04020.58
5.5.240.0100.06020.35
5.4.450.0130.06719.64
5.4.440.0230.06019.18
5.4.430.0270.06719.56
5.4.420.0300.07019.46
5.4.410.0370.06019.29
5.4.400.0300.06719.12
5.4.390.0170.05019.19
5.4.380.0270.06019.06
5.4.370.0300.04019.09
5.4.360.0270.07319.07
5.4.350.0300.06318.95
5.4.340.0270.04719.20
5.4.320.0270.05319.06
5.4.310.0270.07019.08
5.4.300.0230.03318.87
5.4.290.0270.03019.06
5.4.280.0300.06319.16
5.4.270.0200.07719.24
5.4.260.0070.05319.16
5.4.250.0270.06318.84
5.4.240.0200.04718.82
5.4.230.0230.05318.99
5.4.220.0370.06318.96
5.4.210.0230.07019.03
5.4.200.0270.07319.19
5.4.190.0270.07019.00
5.4.180.0200.08019.20
5.4.170.0370.06019.30
5.4.160.0270.07019.17
5.4.150.0200.04719.20
5.4.140.0270.05716.52
5.4.130.0200.04016.41
5.4.120.0170.03716.40
5.4.110.0300.05316.45
5.4.100.0330.06316.53
5.4.90.0200.05316.24
5.4.80.0230.06316.57
5.4.70.0170.03716.29
5.4.60.0170.03716.54
5.4.50.0230.03016.43
5.4.40.0230.03316.58
5.4.30.0200.03716.23
5.4.20.0170.04016.32
5.4.10.0270.06016.52
5.4.00.0200.05315.77
5.3.290.0300.07314.58
5.3.280.0300.06014.49
5.3.270.0230.06714.82
5.3.260.0270.07014.62
5.3.250.0230.04714.52
5.3.240.0270.06714.83
5.3.230.0300.04314.61
5.3.220.0100.04314.49
5.3.210.0300.08314.55
5.3.200.0230.06314.61
5.3.190.0270.06314.55
5.3.180.0200.05314.48
5.3.170.0200.04014.46
5.3.160.0200.04014.54
5.3.150.0200.04014.55
5.3.140.0200.04714.52
5.3.130.0200.03714.59
5.3.120.0170.07314.70
5.3.110.0230.03714.46
5.3.100.0200.05313.95
5.3.90.0200.05013.93
5.3.80.0170.08314.02
5.3.70.0230.05714.07
5.3.60.0330.06013.98
5.3.50.0230.06013.99
5.3.40.0200.07013.95
5.3.30.0330.05713.91
5.3.20.0200.04013.62
5.3.10.0170.05713.66
5.3.00.0530.03313.55
5.2.170.0200.03012.32
5.2.160.0200.05712.32
5.2.150.0230.05012.32
5.2.140.0230.03012.32
5.2.130.0230.05312.32
5.2.120.0170.04712.32
5.2.110.0130.03312.32
5.2.100.0270.04712.32
5.2.90.0230.03312.32
5.2.80.0130.07012.32
5.2.70.0200.03712.32
5.2.60.0200.06312.32
5.2.50.0230.04012.32
5.2.40.0230.05012.32
5.2.30.0170.06012.32
5.2.20.0270.04712.32
5.2.10.0200.05012.32
5.2.00.0200.05312.32
5.1.60.0130.03312.32
5.1.50.0130.04312.32
5.1.40.0170.03712.32
5.1.30.0130.04012.32
5.1.20.0200.02712.32
5.1.10.0130.04712.32
5.1.00.0130.03312.32
5.0.50.0130.02712.32
5.0.40.0070.03012.32
5.0.30.0100.03012.32
5.0.20.0170.01712.32
5.0.10.0100.04312.32
5.0.00.0070.05312.32
4.4.90.0130.01712.32
4.4.80.0070.04012.32
4.4.70.0130.02712.32
4.4.60.0070.02312.32
4.4.50.0100.03312.32
4.4.40.0100.03312.32
4.4.30.0070.03712.32
4.4.20.0100.01312.32
4.4.10.0100.03312.32
4.4.00.0130.04712.32
4.3.110.0100.03312.32
4.3.100.0100.02712.32
4.3.90.0100.02712.32
4.3.80.0030.02712.32
4.3.70.0030.01712.32
4.3.60.0100.02312.32
4.3.50.0030.01712.32
4.3.40.0170.04312.32
4.3.30.0030.02712.32
4.3.20.0000.03012.32
4.3.10.0070.03012.32
4.3.00.0030.02712.32

preferences:
47.48 ms | 401 KiB | 5 Q