3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassA { public function foo(){ echo get_class($this); } } class ClassB extends ClassA { public function foo(){ parent::foo(); echo get_class($this); } } $B = new ClassB(); $B->foo();

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.00318.43
8.3.50.0250.00521.91
8.3.40.0090.00918.62
8.3.30.0110.00318.96
8.3.20.0070.00020.24
8.3.10.0040.00423.65
8.3.00.0000.00819.26
8.2.180.0150.00316.60
8.2.170.0070.00722.96
8.2.160.0150.00420.38
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00422.21
8.2.110.0000.00822.25
8.2.100.0080.00317.84
8.2.90.0050.00319.05
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0030.00619.94
8.2.30.0040.00418.03
8.2.20.0050.00317.67
8.2.10.0070.00017.86
8.2.00.0060.00317.59
8.1.280.0150.00025.92
8.1.270.0040.00423.69
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00023.59
8.1.230.0040.00719.16
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0080.00017.00
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0080.00018.46
8.1.160.0000.00721.90
8.1.150.0030.00718.41
8.1.140.0050.00317.41
8.1.130.0070.00017.82
8.1.120.0000.00717.41
8.1.110.0000.00717.33
8.1.100.0000.00717.42
8.1.90.0040.00417.34
8.1.80.0040.00417.30
8.1.70.0040.00417.29
8.1.60.0080.00017.49
8.1.50.0030.00617.51
8.1.40.0040.00417.49
8.1.30.0000.00817.44
8.1.20.0070.00017.60
8.1.10.0000.00717.43
8.1.00.0000.00717.39
8.0.300.0000.00820.45
8.0.290.0030.00517.04
8.0.280.0000.00718.34
8.0.270.0000.00817.24
8.0.260.0030.00317.15
8.0.250.0000.00716.93
8.0.240.0030.00316.94
8.0.230.0060.00016.89
8.0.220.0070.00016.82
8.0.210.0000.00716.80
8.0.200.0030.00316.74
8.0.190.0000.00716.75
8.0.180.0000.00816.81
8.0.170.0080.00016.87
8.0.160.0000.00816.93
8.0.150.0000.00716.80
8.0.140.0040.00416.66
8.0.130.0030.00313.29
8.0.120.0070.00016.79
8.0.110.0070.00016.82
8.0.100.0040.00416.77
8.0.90.0080.00016.69
8.0.80.0120.00316.77
8.0.70.0000.00716.73
8.0.60.0000.00816.79
8.0.50.0000.00716.65
8.0.30.0100.01117.09
8.0.20.0140.00517.40
8.0.10.0000.00716.78
8.0.00.0110.01116.84
7.4.330.0030.00315.14
7.4.320.0000.00616.52
7.4.300.0000.00616.58
7.4.290.0030.00316.42
7.4.280.0040.00716.61
7.4.270.0030.00316.52
7.4.260.0000.00716.43
7.4.250.0040.00416.37
7.4.240.0040.00316.56
7.4.230.0030.00316.48
7.4.220.0110.00716.53
7.4.210.0080.00716.51
7.4.200.0000.00716.59
7.4.190.0070.00016.55
7.4.160.0110.00616.34
7.4.150.0160.00017.40
7.4.140.0080.00817.86
7.4.130.0030.01516.52
7.4.120.0080.01216.56
7.4.110.0080.00916.52
7.4.100.0100.01316.56
7.4.90.0110.00816.45
7.4.80.0110.01119.39
7.4.70.0120.00416.61
7.4.60.0100.00716.54
7.4.50.0090.00016.57
7.4.40.0060.00622.77
7.4.30.0130.01116.30
7.4.00.0030.01314.88
7.3.330.0000.00513.07
7.3.320.0050.00013.05
7.3.310.0040.00416.03
7.3.300.0030.00316.11
7.3.290.0080.00616.29
7.3.280.0110.00716.26
7.3.270.0080.01217.40
7.3.260.0060.01516.21
7.3.250.0110.00716.23
7.3.240.0200.00316.28
7.3.230.0100.00616.39
7.3.210.0060.01016.33
7.3.200.0100.01019.39
7.3.190.0050.01416.48
7.3.180.0070.01016.46
7.3.170.0060.01016.27
7.3.160.0030.01316.32
7.3.120.0090.00714.65
7.3.110.0090.00914.64
7.3.100.0100.01014.78
7.3.90.0080.00414.57
7.3.80.0060.00914.75
7.3.70.0030.01314.71
7.3.60.0030.00614.50
7.3.50.0060.00614.91
7.3.40.0060.00914.58
7.3.30.0060.01214.69
7.3.20.0090.00916.58
7.3.10.0040.01116.57
7.3.00.0070.00716.21
7.2.330.0120.00916.41
7.2.320.0100.00716.43
7.2.310.0140.00316.76
7.2.300.0100.01016.73
7.2.290.0090.01316.39
7.2.250.0070.01115.04
7.2.240.0170.00014.95
7.2.230.0070.00714.93
7.2.220.0000.01214.80
7.2.210.0060.01214.95
7.2.200.0060.00915.01
7.2.190.0090.00614.80
7.2.180.0030.00714.95
7.2.170.0000.01115.05
7.2.160.0070.01114.95
7.2.150.0090.00916.93
7.2.140.0040.00716.92
7.2.130.0030.01016.87
7.2.120.0070.01016.95
7.2.110.0040.01216.76
7.2.100.0110.00316.86
7.2.90.0060.00616.60
7.2.80.0130.00617.02
7.2.70.0040.01116.93
7.2.60.0100.00717.02
7.2.50.0060.00616.93
7.2.40.0090.00016.84
7.2.30.0070.00416.87
7.2.20.0030.00716.67
7.2.10.0000.00916.91
7.2.00.0040.01017.99
7.1.330.0030.01415.88
7.1.320.0060.00915.89
7.1.310.0090.00015.50
7.1.300.0030.00915.79
7.1.290.0060.00915.88
7.1.280.0100.00715.63
7.1.270.0070.01015.58
7.1.260.0040.00715.84
7.1.250.0030.00615.50
7.1.240.0040.01115.80
7.1.230.0120.00015.48
7.1.220.0030.00715.82
7.1.210.0070.00715.76
7.1.200.0030.01315.70
7.1.190.0120.00315.48
7.1.180.0000.01415.67
7.1.170.0070.00715.85
7.1.160.0100.00315.77
7.1.150.0000.00915.88
7.1.140.0030.00615.82
7.1.130.0070.00715.89
7.1.120.0060.00615.76
7.1.110.0030.00915.66
7.1.100.0090.00216.97
7.1.90.0000.00815.51
7.1.80.0000.01415.68
7.1.70.0050.00816.35
7.1.60.0110.00717.55
7.1.50.0030.01316.21
7.1.40.0000.00815.78
7.1.30.0090.00315.74
7.1.20.0000.01215.79
7.1.10.0030.01415.55
7.1.00.0080.03719.12
7.0.330.0060.00615.37
7.0.320.0100.00315.36
7.0.310.0000.00915.23
7.0.300.0030.00515.34
7.0.290.0000.01315.31
7.0.280.0080.00615.29
7.0.270.0000.01315.38
7.0.260.0000.01215.40
7.0.250.0000.01415.44
7.0.240.0080.00415.55
7.0.230.0060.00615.16
7.0.220.0070.00715.55
7.0.210.0000.01115.37
7.0.200.0060.00814.83
7.0.190.0060.00715.49
7.0.180.0080.00315.45
7.0.170.0040.00715.43
7.0.160.0030.00615.51
7.0.150.0040.01115.09
7.0.140.0060.03818.71
7.0.130.0070.00715.46
7.0.120.0030.01415.50
7.0.110.0070.00715.34
7.0.100.0000.01315.40
7.0.90.0040.00715.21
7.0.80.0000.00915.25
7.0.70.0050.00515.38
7.0.60.0030.04017.57
7.0.50.0050.04716.68
7.0.40.0040.02716.62
7.0.30.0180.01816.87
7.0.20.0160.02216.70
7.0.10.0100.02816.91
7.0.00.0080.03016.85
5.6.400.0040.01214.57
5.6.390.0070.00714.30
5.6.380.0040.00714.32
5.6.370.0110.00414.46
5.6.360.0060.00914.28
5.6.350.0030.01114.57
5.6.340.0090.00614.41
5.6.330.0120.00314.31
5.6.320.0000.01314.40
5.6.310.0070.00714.36
5.6.300.0040.00714.42
5.6.290.0000.00814.35
5.6.280.0030.04117.68
5.6.270.0000.01814.66
5.6.260.0120.00314.31
5.6.250.0030.00614.03
5.6.240.0070.00714.48
5.6.230.0000.01314.44
5.6.220.0000.01314.30
5.6.210.0040.02217.63
5.6.200.0030.02916.16
5.6.190.0050.04017.51
5.6.180.0200.04317.31
5.6.170.0180.04217.41
5.6.160.0080.04417.39
5.6.150.0020.04916.29
5.6.140.0060.03816.29
5.6.130.0000.05116.36
5.6.120.0120.04117.74
5.6.110.0110.04517.63
5.6.100.0030.04617.79
5.6.90.0070.03617.66
5.6.80.0050.04017.38
5.6.70.1610.02117.24
5.6.60.0040.00714.33
5.6.50.0140.00313.88
5.6.40.0040.00414.27
5.6.30.0060.00614.18
5.6.20.0040.00814.18
5.6.10.0030.01414.04
5.6.00.0070.00714.15
5.5.380.0070.00714.43
5.5.370.0070.01014.14
5.5.360.0070.00714.42
5.5.350.0100.04517.39
5.5.340.0050.03816.07
5.5.330.0100.04317.28
5.5.320.1950.02017.16
5.5.310.0150.02717.32
5.5.300.0070.02216.17
5.5.290.0050.03416.19
5.5.280.0160.03817.56
5.5.270.0160.03717.56
5.5.260.0140.02217.57
5.5.250.0080.04317.36
5.5.240.0050.04817.13
5.5.230.0040.00414.17
5.5.220.0070.00714.04
5.5.210.0030.01314.29
5.5.200.0000.01014.10
5.5.190.0060.00913.97
5.5.180.0060.00914.14
5.5.170.0040.01114.22
5.5.160.0000.01414.26
5.5.150.0140.00014.21
5.5.140.0030.01014.07
5.5.130.0000.01714.04
5.5.120.0080.00614.12
5.5.110.0030.01314.09
5.5.100.0060.00614.05
5.5.90.0040.01214.08
5.5.80.0030.01014.17
5.5.70.0040.00814.48
5.5.60.0000.01614.12
5.5.50.0000.01314.30
5.5.40.0000.01113.95
5.5.30.0000.01214.05
5.5.20.0110.00314.40
5.5.10.0000.01514.23
5.5.00.0060.00314.18
5.4.450.0210.03316.10
5.4.440.0100.02216.13
5.4.430.0120.02016.09
5.4.420.0140.02615.91
5.4.410.0080.02515.91
5.4.400.0100.01915.84
5.4.390.0110.02415.91
5.4.380.0120.02815.80
5.4.370.0100.02115.90
5.4.360.0100.02215.92
5.4.350.0110.01915.96
5.4.340.0100.02315.84
5.4.330.0040.01112.62
5.4.320.0100.02315.80
5.4.310.0100.02315.81
5.4.300.0130.02315.82
5.4.290.0070.02515.89
5.4.280.0160.02215.89
5.4.270.0250.01815.85
5.4.260.0180.02315.87
5.4.250.0120.01915.73
5.4.240.0100.04015.88
5.4.230.0080.03915.90
5.4.220.0100.02715.89
5.4.210.0120.03815.85
5.4.200.0080.03015.84
5.4.190.0140.03015.90
5.4.180.0120.04115.79
5.4.170.0150.04415.91
5.4.160.0150.03515.91
5.4.150.0150.04215.96
5.4.140.0130.03014.53
5.4.130.0100.03714.59
5.4.120.0130.03514.48
5.4.110.0100.04214.60
5.4.100.0080.02614.51
5.4.90.0130.03314.46
5.4.80.0170.02314.59
5.4.70.0100.02314.50
5.4.60.0130.03414.58
5.4.50.0180.03614.58
5.4.40.0150.03914.59
5.4.30.0130.02514.52
5.4.20.0180.03514.52
5.4.10.0180.02914.57
5.4.00.0110.03914.39
5.3.290.0070.02513.66
5.3.280.0140.03913.56
5.3.270.0110.02713.61
5.3.260.0100.03613.65
5.3.250.0170.03813.62
5.3.240.0150.03213.62
5.3.230.0150.03513.56
5.3.220.0160.01813.55
5.3.210.0130.02013.67
5.3.200.0120.03213.58
5.3.190.0160.02813.64
5.3.180.0090.03013.60
5.3.170.0120.02713.59
5.3.160.0160.03013.60
5.3.150.0110.02113.55
5.3.140.0200.02013.54
5.3.130.0190.02213.57
5.3.120.0130.04013.62
5.3.110.0130.02813.67
5.3.100.0150.03213.33
5.3.90.0180.03013.32
5.3.80.0130.03813.31
5.3.70.0190.02013.28
5.3.60.0130.02013.31
5.3.50.0170.03413.29
5.3.40.0150.02413.36
5.3.30.0130.02013.28
5.3.20.0140.02213.14
5.3.10.0150.02413.16
5.3.00.0150.03713.08
5.2.170.0170.04011.77
5.2.160.0200.05711.77
5.2.150.0230.05011.77
5.2.140.0270.05011.77
5.2.130.0200.05711.77
5.2.120.0200.05711.77
5.2.110.0100.04311.77
5.2.100.0230.05711.77
5.2.90.0230.05011.77
5.2.80.0230.03011.77
5.2.70.0170.03311.77
5.2.60.0170.05311.77
5.2.50.0170.06011.77
5.2.40.0130.06711.77
5.2.30.0130.05011.77
5.2.20.0100.05711.77
5.2.10.0170.03311.77
5.2.00.0130.04011.77
5.1.60.0200.02711.77
5.1.50.0170.05311.77
5.1.40.0100.04311.77
5.1.30.0070.05311.77
5.1.20.0200.03011.77
5.1.10.0130.04311.77
5.1.00.0170.05311.77
5.0.50.0100.04711.77
5.0.40.0070.04311.77
5.0.30.0070.05711.77
5.0.20.0100.04011.77
5.0.10.0100.04311.77
5.0.00.0100.04711.77
4.4.90.0130.02311.77
4.4.80.0100.03311.77
4.4.70.0070.03711.77
4.4.60.0070.02711.77
4.4.50.0070.02311.77
4.4.40.0070.05311.77
4.4.30.0070.03711.77
4.4.20.0130.03311.77
4.4.10.0100.01711.77
4.4.00.0200.04011.77
4.3.110.0170.03011.77
4.3.100.0130.03011.77
4.3.90.0130.03011.77
4.3.80.0030.03311.77
4.3.70.0170.02011.77
4.3.60.0070.03011.77
4.3.50.0070.03311.77
4.3.40.0030.04711.77
4.3.30.0070.02711.77
4.3.20.0030.03011.77
4.3.10.0000.03011.77
4.3.00.0030.02311.77

preferences:
52.07 ms | 401 KiB | 5 Q