3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function thisCall() { return $this->call(); } public function selfCall() { return self::call(); } public function staticCall() { return static::call(); } public function call() { return 'A'; } } class AB extends A { public function call() { return 'AB'; } } class B extends AB { public function call() { return 'B'; } public function parentCall() { return parent::call(); } } $b = new B; var_dump([ 'this' => $b->thisCall(), 'self' => $b->selfCall(), 'static' => $b->staticCall(), 'b::parent' => $b->parentCall(), ]);

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.140.0100.01117.60
8.4.130.0040.00617.67
8.4.120.0100.00820.54
8.4.110.0080.00322.25
8.4.100.0130.00817.60
8.4.90.0140.00718.58
8.4.80.0040.00417.84
8.4.70.0110.00618.04
8.4.60.0120.00818.93
8.4.50.0120.00818.68
8.4.40.0030.00517.54
8.4.30.0160.00317.56
8.4.20.0170.00318.83
8.4.10.0130.00319.34
8.3.270.0080.01316.44
8.3.260.0130.00416.46
8.3.250.0120.00618.76
8.3.240.0120.00916.61
8.3.230.0120.00816.48
8.3.220.0040.00317.23
8.3.210.0120.00716.63
8.3.200.0040.00516.46
8.3.190.0080.01116.51
8.3.180.0050.00417.04
8.3.170.0090.00920.40
8.3.160.0110.00820.39
8.3.150.0130.00616.98
8.3.140.0150.00317.29
8.3.130.0040.00416.81
8.3.120.0090.00019.03
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0070.00318.43
8.3.70.0070.01116.88
8.3.60.0190.00318.43
8.3.50.0060.01018.00
8.3.40.0070.00718.85
8.3.30.0130.00718.54
8.3.20.0050.00219.22
8.3.10.0080.00023.53
8.3.00.0000.00723.70
8.2.290.0120.00720.16
8.2.280.0130.00816.46
8.2.270.0070.01117.22
8.2.260.0030.00616.52
8.2.250.0090.00616.48
8.2.240.0030.00617.18
8.2.230.0040.00422.58
8.2.220.0090.00037.54
8.2.210.0130.00626.77
8.2.200.0060.00316.63
8.2.190.0170.00716.58
8.2.180.0100.00725.92
8.2.170.0120.00619.02
8.2.160.0100.00320.54
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00318.89
8.2.110.0110.00721.06
8.2.100.0080.00417.91
8.2.90.0030.00617.97
8.2.80.0030.00617.97
8.2.70.0030.00617.93
8.2.60.0000.00818.16
8.2.50.0040.00418.10
8.2.40.0040.00419.33
8.2.30.0050.00320.53
8.2.20.0040.00418.07
8.2.10.0050.00217.99
8.2.00.0000.00819.48
8.1.330.0120.00721.78
8.1.320.0140.00516.08
8.1.310.0150.00318.38
8.1.300.0030.00516.74
8.1.290.0000.00830.84
8.1.280.0070.00725.92
8.1.270.0060.00322.24
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00423.97
8.1.230.0090.00322.75
8.1.220.0060.00317.77
8.1.210.0030.00718.77
8.1.200.0060.00317.35
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0030.00518.51
8.1.160.0000.00718.73
8.1.150.0030.00518.75
8.1.140.0030.00319.06
8.1.130.0070.00018.96
8.1.120.0050.00217.38
8.1.110.0040.00417.48
8.1.100.0040.00417.43
8.1.90.0050.00217.40
8.1.80.0040.00417.30
8.1.70.0000.00717.29
8.1.60.0030.00517.57
8.1.50.0040.00417.57
8.1.40.0000.00817.44
8.1.30.0050.00317.72
8.1.20.0040.00417.52
8.1.10.0000.00917.38
8.1.00.0090.00017.45
8.0.300.0000.00819.60
8.0.290.0000.00816.75
8.0.280.0000.00718.30
8.0.270.0000.00716.70
8.0.260.0030.00317.16
8.0.250.0000.00716.91
8.0.240.0000.00716.89
8.0.230.0070.00016.87
8.0.220.0070.00016.73
8.0.210.0080.00016.72
8.0.200.0000.00716.95
8.0.190.0040.00416.92
8.0.180.0020.00516.85
8.0.170.0040.00416.84
8.0.160.0060.00316.80
8.0.150.0000.00716.70
8.0.140.0030.00316.82
8.0.130.0030.00313.29
8.0.120.0030.00516.75
8.0.110.0040.00416.80
8.0.100.0030.00616.68
8.0.90.0030.00516.88
8.0.80.0030.01616.82
8.0.70.0040.00416.86
8.0.60.0000.00716.86
8.0.50.0050.00316.79
8.0.30.0120.01017.20
8.0.20.0140.00817.40
8.0.10.0100.01617.10
8.0.00.0140.00916.75
7.4.330.0000.00415.55
7.4.320.0060.00016.45
7.4.300.0000.00616.50
7.4.290.0000.00716.59
7.4.280.0030.00616.61
7.4.270.0050.00316.50
7.4.260.0040.00416.50
7.4.250.0000.00716.57
7.4.240.0080.00016.70
7.4.230.0030.00316.40
7.4.220.0040.00416.49
7.4.210.0080.00716.58
7.4.200.0070.00016.36
7.4.160.0120.00416.41
7.4.140.0080.01217.57
7.4.130.0080.01016.41
7.4.120.0110.01016.44
7.4.110.0160.00616.42
7.4.100.0120.00916.39
7.4.90.0070.01516.40
7.4.80.0130.01017.10
7.4.70.0150.00616.48
7.4.60.0110.00916.46
7.4.50.0180.00416.33
7.4.40.0140.01016.42
7.4.30.0170.00616.43
7.4.20.0180.00516.54
7.4.10.0120.01015.96
7.4.00.0090.01015.62
7.3.330.0000.00513.32
7.3.320.0030.00313.25
7.3.310.0030.00316.12
7.3.300.0040.00416.35
7.3.290.0000.00716.17
7.3.280.0120.00716.27
7.3.260.0100.00916.49
7.3.250.0100.01016.14
7.3.240.0110.01116.35
7.3.230.0140.00916.25
7.3.220.0120.01116.45
7.3.210.0120.01016.39
7.3.200.0130.00916.28
7.3.190.0130.00816.40
7.3.180.0110.01316.30
7.3.170.0120.01216.49
7.3.160.0120.01116.33
7.3.150.0170.00916.24
7.3.140.0140.00816.42
7.3.130.0150.00716.02
7.3.120.0130.00815.92
7.3.110.0090.00916.07
7.3.100.0100.01115.96
7.3.90.0080.01116.02
7.3.80.0100.00715.82
7.3.70.0110.01216.02
7.3.60.0130.00915.95
7.3.50.0130.00815.97
7.3.40.0100.01015.83
7.3.30.0130.00815.86
7.3.20.0160.01216.45
7.3.10.0240.00916.45
7.3.00.0160.01116.42
7.2.340.0150.00816.49
7.2.330.0160.00816.35
7.2.320.0160.00816.59
7.2.310.0150.00916.51
7.2.300.0160.00816.57
7.2.290.0150.01216.50
7.2.280.0190.00716.47
7.2.270.0180.01016.56
7.2.260.0140.01216.07
7.2.250.0150.01016.14
7.2.240.0120.00816.17
7.2.230.0120.01116.00
7.2.220.0120.01216.20
7.2.210.0160.00616.02
7.2.200.0130.01116.14
7.2.190.0120.01216.09
7.2.180.0120.01116.13
7.2.170.0120.01116.04
7.2.160.0110.01016.12
7.2.150.0280.00916.61
7.2.140.0110.01416.60
7.2.130.0270.00816.57
7.2.120.0200.01016.67
7.2.110.0180.00915.87
7.2.100.0180.01115.88
7.2.90.0160.00915.91
7.2.80.0190.00715.67
7.2.70.0480.01015.82
7.2.60.0130.01015.84
7.2.50.0350.00715.75
7.2.40.0170.00715.76
7.2.30.0160.01115.90
7.2.20.0150.00915.81
7.2.10.0190.00815.81
7.2.00.0200.00615.85
7.1.330.0350.00615.54
7.1.320.0190.01115.45
7.1.310.0260.00715.50
7.1.300.0160.01115.54
7.1.290.0300.00815.55
7.1.280.0160.00915.55
7.1.270.0180.01015.58
7.1.260.0180.01015.50
7.1.250.0170.00815.42
7.1.240.0180.01015.35
7.1.230.0200.00814.93
7.1.220.0250.00814.90
7.1.210.0220.00614.92
7.1.200.0310.00915.02
7.1.190.0200.00914.71
7.1.180.0190.00814.67
7.1.170.0220.00714.66
7.1.160.0220.00714.73
7.1.150.0230.01014.73
7.1.140.0190.00714.76
7.1.130.0210.00614.67
7.1.120.0210.00514.63
7.1.110.0210.00814.68
7.1.100.0170.00814.68
7.1.90.0230.00714.78
7.1.80.0240.00714.74
7.1.70.0210.00614.70
7.1.60.0270.00722.48
7.1.50.0270.00822.42
7.1.40.0290.01122.37
7.1.30.0280.00922.45
7.1.20.0400.01022.46
7.1.10.0210.00814.60
7.1.00.0170.00714.60
7.0.330.0180.01115.18
7.0.320.0160.01215.16
7.0.310.0150.00815.18
7.0.300.0160.01015.07
7.0.290.0130.01115.17
7.0.280.0230.00515.14
7.0.270.0180.00615.13
7.0.260.0150.01215.14
7.0.250.0160.00715.24
7.0.240.0150.01015.24
7.0.230.0120.01115.16
7.0.220.0170.00915.17
7.0.210.0140.00915.26
7.0.200.0140.00915.12
7.0.190.0140.01015.15
7.0.180.0150.01215.10
7.0.170.0210.00815.14
7.0.160.0160.00915.12
7.0.150.0170.00915.17
7.0.140.0130.01015.11
7.0.130.0160.00815.20
7.0.120.0120.00815.20
7.0.110.0290.01315.18
7.0.100.0200.00715.26
7.0.90.0170.00715.13
7.0.80.0180.00615.18
7.0.70.0150.00815.08
7.0.60.0180.00515.09
7.0.50.0180.00615.12
7.0.40.0110.01214.72
7.0.30.0180.00714.62
7.0.20.0170.00414.71
7.0.10.0200.00614.71
7.0.00.0180.00714.64
5.6.400.0160.01015.59
5.6.390.0170.01215.47
5.6.380.0120.01115.00
5.6.370.0200.00715.36
5.6.360.0150.01115.65
5.6.350.0170.01415.51
5.6.340.0140.01115.55
5.6.330.0160.01115.59
5.6.320.0160.01015.55
5.6.310.0140.01115.59
5.6.300.0150.01115.37
5.6.290.0120.01315.54
5.6.280.0120.01215.39
5.6.270.0100.01315.55
5.6.260.0180.00915.34
5.6.250.0130.01215.58
5.6.240.0150.01115.40
5.6.230.0130.01215.38
5.6.220.0150.00915.51
5.6.210.0180.00915.42
5.6.200.0160.01115.55
5.6.190.0180.01015.50
5.6.180.0170.00715.48
5.6.170.0190.00815.64
5.6.160.0160.00815.44
5.6.150.0170.00715.49
5.6.140.0130.01015.42
5.6.130.0110.01515.39
5.6.120.0200.00715.53
5.6.110.0110.01215.55
5.6.100.0130.01215.43
5.6.90.0160.00915.38
5.6.80.0140.00915.53
5.6.70.0170.00915.39
5.6.60.0150.00915.42
5.6.50.0100.01415.52
5.6.40.0150.00915.48
5.6.30.0160.00615.55
5.6.20.0170.00915.42
5.6.10.0200.00615.42
5.6.00.0150.00915.34
5.5.380.0210.00815.70
5.5.370.0180.01215.95
5.5.360.0150.01915.91
5.5.350.0260.00915.94
5.5.340.0200.01215.80
5.5.330.0280.01016.05
5.5.320.0190.01215.73
5.5.310.0190.01115.76
5.5.300.0250.01115.97
5.5.290.0280.00415.82
5.5.280.0190.01116.09
5.5.270.0240.00615.73
5.5.260.0230.00715.94
5.5.250.0220.00915.65
5.5.240.0230.00815.58
5.5.230.0260.00415.83
5.5.220.0230.00815.93
5.5.210.0070.02215.94
5.5.200.0270.00615.93
5.5.190.0240.01115.64
5.5.180.0310.00716.05
5.5.170.0170.01115.89
5.5.160.0270.00315.59
5.5.150.0160.01615.80
5.5.140.0170.01515.76
5.5.130.0200.01215.73
5.5.120.0250.00715.70
5.5.110.0210.01015.84
5.5.100.0230.00815.94
5.5.90.0190.01115.76
5.5.80.0200.01116.00
5.5.70.0270.01515.82
5.5.60.0210.01415.94
5.5.50.0210.00915.75
5.5.40.0190.01015.61
5.5.30.0180.01115.88
5.5.20.0200.00915.75
5.5.10.0220.00615.91
5.5.00.0220.00915.38
5.4.450.0120.01012.57
5.4.440.0140.00912.71
5.4.430.0160.00612.68
5.4.420.0190.00312.58
5.4.410.0160.00812.77
5.4.400.0220.00012.75
5.4.390.0190.00512.50
5.4.380.0100.01012.69
5.4.370.0200.00312.51
5.4.360.0180.00512.59
5.4.350.0200.00712.56
5.4.340.0120.01212.38
5.4.330.0180.00512.63
5.4.320.0190.00612.62
5.4.310.0170.00712.73
5.4.300.0090.01512.53
5.4.290.0130.01112.53
5.4.280.0190.01012.68
5.4.270.0150.00912.46
5.4.260.0170.00712.48
5.4.250.0120.01112.63
5.4.240.0080.01612.48
5.4.230.0170.00912.53
5.4.220.0090.01312.53
5.4.210.0150.00712.49
5.4.200.0240.00012.51
5.4.190.0180.00612.61
5.4.180.0150.00612.31
5.4.170.0090.01212.23
5.4.160.0200.00012.34
5.4.150.0130.00912.53
5.4.140.0110.01112.54
5.4.130.0090.01412.41
5.4.120.0110.00912.44
5.4.110.0160.01012.24
5.4.100.0160.00512.64
5.4.90.0090.01012.38
5.4.80.0120.00612.45
5.4.70.0060.01712.35
5.4.60.0160.00312.25
5.4.50.0140.00612.49
5.4.40.0090.01112.45
5.4.30.0190.00412.54
5.4.20.0210.00712.70
5.4.10.0130.01012.53
5.4.00.0180.00512.62
5.3.290.0140.01012.84
5.3.280.0140.01112.78
5.3.270.0070.02012.87
5.3.260.0180.00612.72
5.3.250.0170.00812.85
5.3.240.0210.00512.60
5.3.230.0160.00712.80
5.3.220.0120.01212.68
5.3.210.0240.00612.69
5.3.200.0130.01112.66
5.3.190.0170.01112.99
5.3.180.0180.00612.84
5.3.170.0140.01112.99
5.3.160.0160.00713.00
5.3.150.0160.00613.00
5.3.140.0080.01613.05
5.3.130.0150.01212.92
5.3.120.0230.00012.82
5.3.110.0150.00912.93
5.3.100.0180.00713.05
5.3.90.0100.01413.00
5.3.80.0160.00712.78
5.3.70.0180.00512.73
5.3.60.0120.00812.89
5.3.50.0110.01112.84
5.3.40.0200.00312.88
5.3.30.0250.00012.72
5.3.20.0130.00912.73
5.3.10.0160.00712.48
5.3.00.0140.00712.56
5.2.170.0120.00511.96
5.2.160.0120.00811.86
5.2.150.0180.00311.91
5.2.140.0140.00611.86
5.2.130.0080.01111.80
5.2.120.0040.01411.78
5.2.110.0170.00311.78
5.2.100.0060.01311.78
5.2.90.0090.00911.78
5.2.80.0070.01311.78
5.2.70.0130.00811.78
5.2.60.0140.01011.78
5.2.50.0140.00711.78
5.2.40.0110.00711.78
5.2.30.0100.00811.78
5.2.20.0100.00711.78
5.2.10.0090.00911.78
5.2.00.0130.00311.78
5.1.60.0120.00311.78
5.1.50.0120.00411.78
5.1.40.0120.00411.78
5.1.30.0140.00311.78
5.1.20.0070.01011.78
5.1.10.0070.01011.78
5.1.00.0080.00811.78
5.0.50.0070.00711.78
5.0.40.0090.00611.78
5.0.30.0040.01011.78
5.0.20.0140.00011.78
5.0.10.0100.00311.78
5.0.00.0060.00611.78
4.4.90.0060.00311.78
4.4.80.0090.00011.78
4.4.70.0090.00011.78
4.4.60.0080.00011.78
4.4.50.0040.00411.78
4.4.40.0060.00311.78
4.4.30.0090.00011.78
4.4.20.0040.00411.78
4.4.10.0060.00311.78
4.4.00.0060.00311.78
4.3.110.0000.00811.78
4.3.100.0000.00911.78
4.3.90.0040.00411.78
4.3.80.0090.00011.78
4.3.70.0090.00011.78
4.3.60.0050.00511.78
4.3.50.0030.00611.78
4.3.40.0090.00011.78
4.3.30.0080.00011.78
4.3.20.0040.00411.78
4.3.10.0080.00011.78
4.3.00.0000.00711.78

preferences:
33.46 ms | 403 KiB | 5 Q