3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { use \stdClass; class Baz extends stdClass { } } namespace Foo\Bar { use Foo\Baz; $baz = new Baz(); var_dump(get_parent_class($baz)); }

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.0120.00818.43
8.3.50.0120.00721.27
8.3.40.0180.00418.54
8.3.30.0150.00319.15
8.3.20.0070.00020.26
8.3.10.0040.00421.91
8.3.00.0070.00022.43
8.2.180.0160.00316.32
8.2.170.0060.00922.96
8.2.160.0040.01119.02
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.01226.16
8.2.120.0000.00819.82
8.2.110.0040.00422.11
8.2.100.0040.00717.64
8.2.90.0040.00419.18
8.2.80.0040.00417.97
8.2.70.0030.00717.63
8.2.60.0030.00517.65
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0000.00717.87
8.2.20.0030.00517.51
8.2.10.0040.00417.62
8.2.00.0060.00317.71
8.1.280.0030.01425.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0050.00523.64
8.1.230.0070.00421.03
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.00
8.1.190.0040.00417.40
8.1.180.0030.00518.75
8.1.170.0030.00618.55
8.1.160.0000.00722.13
8.1.150.0040.00418.62
8.1.140.0040.00417.48
8.1.130.0000.00717.69
8.1.120.0030.00417.36
8.1.110.0000.00717.27
8.1.100.0070.00017.31
8.1.90.0030.00417.36
8.1.80.0040.00417.32
8.1.70.0070.00017.29
8.1.60.0030.00617.54
8.1.50.0040.00417.46
8.1.40.0030.00517.46
8.1.30.0060.00317.49
8.1.20.0000.00817.55
8.1.10.0080.00017.51
8.1.00.0030.00617.50
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0000.00818.39
8.0.270.0080.00017.23
8.0.260.0000.00816.63
8.0.250.0000.00616.85
8.0.240.0030.00616.81
8.0.230.0030.00316.89
8.0.220.0000.00716.81
8.0.210.0050.00216.75
8.0.200.0040.00416.77
8.0.190.0040.00416.77
8.0.180.0030.00416.84
8.0.170.0000.00816.77
8.0.160.0030.00316.87
8.0.150.0040.00416.80
8.0.140.0040.00416.67
8.0.130.0000.00613.27
8.0.120.0070.00016.81
8.0.110.0000.00716.86
8.0.100.0050.00216.79
8.0.90.0040.00416.76
8.0.80.0090.00616.83
8.0.70.0000.00716.78
8.0.60.0000.00716.70
8.0.50.0040.00416.85
8.0.30.0100.00816.91
8.0.20.0140.00417.40
8.0.10.0040.00416.96
8.0.00.0090.01216.62
7.4.330.0000.00516.67
7.4.320.0000.00816.29
7.4.300.0000.00616.32
7.4.290.0030.00316.42
7.4.280.0000.00716.55
7.4.270.0040.00216.42
7.4.260.0040.00416.40
7.4.250.0050.00316.50
7.4.240.0050.00216.50
7.4.230.0000.00716.32
7.4.220.0120.00416.51
7.4.210.0090.00716.49
7.4.200.0030.00316.53
7.4.190.0070.00016.48
7.4.160.0130.00316.32
7.4.150.0030.01417.40
7.4.140.0080.01017.86
7.4.130.0100.01016.40
7.4.120.0070.01316.34
7.4.110.0150.00316.41
7.4.100.0090.01216.25
7.4.90.0040.01316.43
7.4.80.0090.01519.39
7.4.70.0150.00416.39
7.4.60.0000.01516.41
7.4.50.0030.00316.30
7.4.40.0090.00322.77
7.4.30.0100.00616.51
7.4.00.0090.00614.51
7.3.330.0030.00313.17
7.3.320.0000.00612.99
7.3.310.0070.00016.03
7.3.300.0040.00416.22
7.3.290.0070.00716.13
7.3.280.0120.00616.18
7.3.270.0110.00617.40
7.3.260.0100.00616.17
7.3.250.0120.00516.32
7.3.240.0110.00616.38
7.3.230.0100.00616.41
7.3.210.0140.00316.30
7.3.200.0070.01019.39
7.3.190.0090.00916.11
7.3.180.0080.00816.31
7.3.170.0060.01116.29
7.3.160.0110.00616.22
7.3.120.0030.01314.68
7.2.330.0110.00716.39
7.2.320.0080.00916.76
7.2.310.0060.01216.50
7.2.300.0100.00716.61
7.2.290.0090.00616.73
7.2.00.0000.00919.45
7.1.100.0000.01117.99
7.1.70.0040.00416.99
7.1.60.0100.01419.82
7.1.50.0120.01216.54
7.1.00.0030.07322.44
7.0.200.0030.00316.72
7.0.140.0130.06721.99
7.0.60.0070.06719.93
7.0.50.0030.04017.94
7.0.40.0100.08320.09
7.0.30.0330.07320.08
7.0.20.0230.07320.19
7.0.10.0000.07320.07
7.0.00.0000.05020.12
5.6.280.0030.07321.08
5.6.210.0000.04320.73
5.6.200.0170.04018.14
5.6.190.0100.07320.55
5.6.180.0300.05320.77
5.6.170.0300.06720.54
5.6.160.0000.04320.42
5.6.150.0000.05318.21
5.6.140.0100.03718.18
5.6.130.0000.08718.25
5.6.120.0070.04321.03
5.6.110.0030.04721.09
5.6.100.0000.05320.98
5.6.90.0070.05020.99
5.6.80.0070.07320.38
5.5.350.0130.04020.30
5.5.340.0030.05718.04
5.5.330.0070.07020.19
5.5.320.0230.04320.52
5.5.310.0200.04020.30
5.5.300.0070.07317.98
5.5.290.0070.03717.93
5.5.280.0100.08020.77
5.5.270.0130.08320.86
5.5.260.0230.05320.67
5.5.250.0030.07020.54
5.5.240.0030.06720.03
5.4.450.0630.06319.33
5.4.440.0630.05719.31
5.4.430.0130.05319.43
5.4.420.0130.05319.36
5.4.410.0100.05018.69
5.4.400.0170.04718.87
5.4.390.0070.05718.59
5.4.380.0170.04718.46
5.4.370.0170.04718.79
5.4.360.0100.05318.78
5.4.350.0100.05718.83
5.4.340.0230.04718.59
5.4.320.0060.03612.50
5.4.310.0060.03912.49
5.4.300.0030.04112.50
5.4.290.0060.04212.50
5.4.280.0070.03412.39
5.4.270.0050.04012.39
5.4.260.0130.04719.01
5.4.250.0130.05718.96
5.4.240.0070.05318.95
5.4.230.0100.07718.98
5.4.220.0070.07018.95
5.4.210.0070.05718.98
5.4.200.0100.05018.77
5.4.190.0070.05718.80
5.4.180.0200.04018.72
5.4.170.0100.05318.75
5.4.160.0030.06018.79
5.4.150.0030.05718.93
5.4.140.0070.05316.50
5.4.130.0070.05016.32
5.4.120.0070.05016.25
5.4.110.0070.05016.63
5.4.100.0070.06716.52
5.4.90.0200.04716.36
5.4.80.0030.05016.45
5.4.70.0070.05016.52
5.4.60.0030.06016.38
5.4.50.0070.06716.50
5.4.40.0100.05016.43
5.4.30.0130.06316.42
5.4.20.0070.07016.30
5.4.10.0130.06016.49
5.4.00.0170.03715.96
5.3.290.0070.03812.80
5.3.280.0030.05714.67
5.3.270.0100.07714.62
5.3.260.0200.07014.57
5.3.250.0070.05014.61
5.3.240.0030.06714.66
5.3.230.0100.05014.75
5.3.220.0100.04714.72
5.3.210.0200.03714.69
5.3.200.0100.04714.39
5.3.190.0100.06714.54
5.3.180.0070.05014.55
5.3.170.0000.05714.73
5.3.160.0100.05014.64
5.3.150.0100.07714.57
5.3.140.0100.05314.51
5.3.130.0070.05714.76
5.3.120.0030.08014.60
5.3.110.0100.05314.63
5.3.100.0130.05314.16
5.3.90.0070.05014.09
5.3.80.0170.04014.07
5.3.70.0100.04713.99
5.3.60.0130.04314.08
5.3.50.0130.06313.98
5.3.40.0030.05313.92
5.3.30.0130.04313.98
5.3.20.0100.05013.68
5.3.10.0130.05713.71
5.3.00.0030.07013.54
5.2.170.0100.03711.07
5.2.160.0070.03711.04
5.2.150.0070.04711.29
5.2.140.0170.03011.13
5.2.130.0070.04011.13
5.2.120.0070.05711.11
5.2.110.0130.03011.00
5.2.100.0200.04011.09
5.2.90.0030.04711.10
5.2.80.0070.06011.20
5.2.70.0100.05311.01
5.2.60.0130.04011.14
5.2.50.0070.04711.17
5.2.40.0100.03710.83
5.2.30.0030.04310.99
5.2.20.0030.04311.11
5.2.10.0130.04710.84
5.2.00.0100.03710.47
5.1.60.0070.03310.03
5.1.50.0100.0309.84
5.1.40.0070.0339.91
5.1.30.0200.03310.39
5.1.20.0070.03710.26
5.1.10.0000.05310.11
5.1.00.0000.03710.10
5.0.50.0100.0238.73
5.0.40.0000.0408.48
5.0.30.0000.0478.31
5.0.20.0000.0378.24
5.0.10.0070.0338.13
5.0.00.0000.0438.11
4.4.90.0070.0177.46
4.4.80.0000.0277.46
4.4.70.0100.0177.43
4.4.60.0030.0277.40
4.4.50.0030.0307.38
4.4.40.0030.0337.33
4.4.30.0070.0277.32
4.4.20.0000.0277.21
4.4.10.0000.0237.14
4.4.00.0030.0437.09
4.3.110.0030.0307.04
4.3.100.0100.0177.01
4.3.90.0000.0236.99
4.3.80.0000.0336.96
4.3.70.0030.0306.93
4.3.60.0000.0276.93
4.3.50.0000.0276.90
4.3.40.0000.0506.87
4.3.30.0030.0306.87
4.3.20.0030.0276.86
4.3.10.0000.0236.81
4.3.00.0130.0236.76

preferences:
49.38 ms | 401 KiB | 5 Q