3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function getType() { return get_called_class(); } } class Bar extends Foo{} $bar = new Bar(); echo $bar->getType();

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.0060.00916.36
8.3.50.0110.00721.93
8.3.40.0180.00418.72
8.3.30.0000.01418.91
8.3.20.0040.00420.23
8.3.10.0040.00423.48
8.3.00.0040.00422.64
8.2.180.0110.00416.63
8.2.170.0150.00022.96
8.2.160.0030.01320.47
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0100.01026.16
8.2.120.0050.00319.83
8.2.110.0060.00322.28
8.2.100.0080.00417.52
8.2.90.0040.00419.05
8.2.80.0040.00418.04
8.2.70.0030.00517.63
8.2.60.0000.01117.93
8.2.50.0030.00818.07
8.2.40.0070.00018.22
8.2.30.0000.00718.10
8.2.20.0000.00717.65
8.2.10.0080.00017.68
8.2.00.0000.00817.67
8.1.280.0100.01025.92
8.1.270.0040.00423.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0060.00618.88
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0070.00317.23
8.1.190.0080.00017.28
8.1.180.0040.00418.10
8.1.170.0030.00518.52
8.1.160.0000.00721.89
8.1.150.0040.00418.50
8.1.140.0080.00017.38
8.1.130.0030.00317.82
8.1.120.0040.00417.30
8.1.110.0040.00417.34
8.1.100.0050.00317.39
8.1.90.0040.00417.43
8.1.80.0030.00317.38
8.1.70.0000.00717.34
8.1.60.0000.00817.57
8.1.50.0040.00417.54
8.1.40.0000.00717.49
8.1.30.0000.00817.61
8.1.20.0000.00717.55
8.1.10.0000.00817.59
8.1.00.0000.00717.36
8.0.300.0030.00318.77
8.0.290.0000.00717.15
8.0.280.0070.00018.43
8.0.270.0040.00417.21
8.0.260.0060.00316.73
8.0.250.0070.00016.82
8.0.240.0040.00416.88
8.0.230.0060.00016.85
8.0.220.0070.00016.78
8.0.210.0000.00716.72
8.0.200.0000.00616.76
8.0.190.0000.00716.77
8.0.180.0000.00716.87
8.0.170.0000.00716.80
8.0.160.0050.00216.82
8.0.150.0000.00716.77
8.0.140.0040.00416.81
8.0.130.0060.00013.22
8.0.120.0000.00816.81
8.0.110.0040.00416.79
8.0.100.0000.00716.85
8.0.90.0000.00716.79
8.0.80.0040.01516.86
8.0.70.0040.00416.79
8.0.60.0070.00016.87
8.0.50.0030.00516.75
8.0.30.0090.01016.89
8.0.20.0120.00617.40
8.0.10.0000.00716.97
8.0.00.0080.01216.77
7.4.330.0000.00515.00
7.4.320.0060.00016.48
7.4.300.0030.00316.59
7.4.290.0030.00316.46
7.4.280.0030.00516.57
7.4.270.0030.00316.63
7.4.260.0000.00716.47
7.4.250.0070.00016.48
7.4.240.0040.00416.52
7.4.230.0040.00416.48
7.4.220.0000.01716.63
7.4.210.0080.00816.62
7.4.200.0000.00716.52
7.4.190.0000.00716.76
7.4.160.0110.00416.48
7.4.150.0070.01417.40
7.4.140.0120.01017.86
7.4.130.0110.00716.61
7.4.120.0050.01116.41
7.4.110.0110.00516.45
7.4.100.0100.00716.32
7.4.90.0070.01616.44
7.4.80.0140.01019.39
7.4.70.0060.01316.50
7.4.60.0070.01016.59
7.4.50.0000.00916.52
7.4.40.0030.01322.77
7.4.30.0060.00916.53
7.4.00.0030.01315.03
7.3.330.0030.00313.25
7.3.320.0000.00513.26
7.3.310.0050.00216.25
7.3.300.0000.00716.14
7.3.290.0080.00816.21
7.3.280.0030.01416.26
7.3.270.0090.00617.40
7.3.260.0200.00316.28
7.3.250.0120.00516.46
7.3.240.0140.00316.51
7.3.230.0090.00616.39
7.3.210.0090.00816.21
7.3.200.0120.00919.39
7.3.190.0140.00716.49
7.3.180.0120.00316.33
7.3.170.0110.00416.46
7.3.160.0060.01016.38
7.3.120.0040.01114.87
7.2.330.0000.01716.47
7.2.320.0070.01116.20
7.2.310.0000.02016.55
7.2.300.0070.01016.62
7.2.290.0090.00616.46
7.2.00.0030.01419.55
7.1.100.0030.01018.06
7.1.70.0000.01216.70
7.1.60.0120.00019.29
7.1.50.0070.01016.82
7.1.00.0000.07722.48
7.0.200.0040.00416.73
7.0.140.0030.07322.15
7.0.60.0370.06319.88
7.0.50.0000.06017.86
7.0.40.0070.05020.20
7.0.30.0370.06720.08
7.0.20.0330.08020.30
7.0.10.0100.08720.10
7.0.00.0070.06020.25
5.6.210.0130.07320.67
5.6.200.0000.09318.25
5.6.190.0030.04320.67
5.6.180.0170.05020.57
5.6.170.0300.06720.55
5.6.160.0130.07720.46
5.6.150.0070.06018.21
5.6.140.0030.07018.27
5.6.130.0000.09318.11
5.6.120.0030.04320.90
5.6.110.0170.06720.89
5.6.100.0200.07321.02
5.6.90.0000.09020.97
5.6.80.0000.04720.50
5.5.350.3570.04320.36
5.5.340.0230.06017.95
5.5.330.0130.08020.27
5.5.320.0370.07020.28
5.5.310.0300.03720.36
5.5.300.0030.04717.97
5.5.290.0000.07718.08
5.5.280.0070.08720.95
5.5.270.0100.06020.80
5.5.260.0170.07320.73
5.5.250.0000.04320.71
5.5.240.0270.07720.18
5.4.450.2400.03319.54
5.4.440.2570.04019.55
5.4.430.2270.03019.54
5.4.420.2230.03719.46
5.4.410.2900.03719.27
5.4.400.2670.03019.13
5.4.390.2300.03319.14
5.4.380.2400.03318.95
5.4.370.2030.03719.08
5.4.360.2370.03718.84
5.4.350.2670.03319.22
5.4.340.2200.03719.08
5.4.320.2630.04019.17
5.4.310.2600.03019.31
5.4.300.2270.03719.12
5.4.290.2770.04319.08
5.4.280.1870.03319.09
5.4.270.0400.03318.99
5.4.260.0170.04018.99
5.4.250.0230.04019.08
5.4.240.0200.06319.21
5.4.230.0230.03719.23
5.4.220.0200.08018.99
5.4.210.0200.04719.19
5.4.200.0230.04319.12
5.4.190.0230.07319.07
5.4.180.0230.07018.97
5.4.170.0200.04019.07
5.4.160.0130.05719.20
5.4.150.0170.08019.20
5.4.140.0270.05016.68
5.4.130.0170.06316.56
5.4.120.0230.04316.55
5.4.110.0330.04716.24
5.4.100.0230.03016.52
5.4.90.0330.05016.59
5.4.80.0270.03316.59
5.4.70.0200.03716.57
5.4.60.0370.03316.23
5.4.50.0230.04316.42
5.4.40.0270.06716.28
5.4.30.0330.03716.48
5.4.20.0270.07316.48
5.4.10.0230.04316.38
5.4.00.0200.04715.99
5.3.290.0230.05014.63
5.3.280.0170.04714.60
5.3.270.0200.06014.61
5.3.260.0270.03714.61
5.3.250.0270.04714.61
5.3.240.0200.04314.59
5.3.230.0230.07014.60
5.3.220.0270.03714.71
5.3.210.0200.06014.59
5.3.200.0200.04314.46
5.3.190.0200.04314.47
5.3.180.0330.05714.62
5.3.170.0270.04314.49
5.3.160.0200.03714.55
5.3.150.0170.04314.63
5.3.140.0200.03714.78
5.3.130.0200.06014.55
5.3.120.0270.07014.45
5.3.110.0130.05314.69
5.3.100.0230.06313.93
5.3.90.0200.07314.09
5.3.80.0270.03314.10
5.3.70.0200.06013.95
5.3.60.0100.04314.08
5.3.50.0200.03013.86
5.3.40.0330.05713.87
5.3.30.0170.04313.88
5.3.20.0170.03313.59
5.3.10.0270.03713.57
5.3.00.0200.04313.55
5.2.170.0200.05712.38
5.2.160.0170.04312.38
5.2.150.0130.04012.38
5.2.140.0170.03012.38
5.2.130.0130.04012.38
5.2.120.0230.02012.38
5.2.110.0100.03012.38
5.2.100.0170.02712.38
5.2.90.0100.03312.38
5.2.80.0070.03312.38
5.2.70.0200.03012.38
5.2.60.0170.02712.38
5.2.50.0130.03012.38
5.2.40.0200.05012.38
5.2.30.0130.02712.38
5.2.20.0200.05012.38
5.2.10.0100.04012.38
5.2.00.0100.03312.38
5.1.60.0070.02712.38
5.1.50.0130.04312.38
5.1.40.0130.03012.38
5.1.30.0100.02712.38
5.1.20.0130.04312.38
5.1.10.0100.04712.38
5.1.00.0170.03012.38
5.0.50.0100.03712.38
5.0.40.0030.02312.38
5.0.30.0070.03312.38
5.0.20.0100.04012.38
5.0.10.0070.02712.38
5.0.00.0070.06012.38
4.4.90.0070.02312.38
4.4.80.0070.01712.38
4.4.70.0030.02012.38
4.4.60.0070.04012.38
4.4.50.0070.03312.38
4.4.40.0030.03712.38
4.4.30.0070.03012.38
4.4.20.0100.02712.38
4.4.10.0070.03012.38
4.4.00.0000.04012.38
4.3.110.0030.02712.38
4.3.100.0070.03312.38
4.3.90.0100.02012.38
4.3.80.0070.04712.38
4.3.70.0100.02712.38
4.3.60.0100.02312.38
4.3.50.0100.03312.38
4.3.40.0100.02012.38
4.3.30.0000.01712.38
4.3.20.0100.03012.38
4.3.10.0070.02712.38
4.3.00.0030.02012.38

preferences:
50.85 ms | 401 KiB | 5 Q