3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function whoami() { return 'A'; } public function __call($method, array $args) { return 'A::__call::' . $method; } } class BB extends A { public function whoami() { return 'BB'; } public function getX() { return 'BB::getX (FYI: parent is ' . parent::whoami(). ') -> ' . parent::getX() ; } } class CCC extends BB { public function whoami() { return 'CCC'; } public function __call($method, array $args) { return 'CCC::__call::' . $method . ' -> ' . parent::__call($method, $args); } } $c = new CCC(); echo $c->getX() . "\n";

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.0140.00316.50
8.3.50.0100.00522.06
8.3.40.0060.01218.79
8.3.30.0140.00019.05
8.3.20.0050.00220.23
8.3.10.0080.00023.61
8.3.00.0100.00017.50
8.2.180.0100.01018.16
8.2.170.0070.01022.96
8.2.160.0070.01120.35
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0000.01026.16
8.2.120.0080.00022.27
8.2.110.0060.00322.29
8.2.100.0000.01117.78
8.2.90.0040.00419.09
8.2.80.0080.00017.97
8.2.70.0030.00517.50
8.2.60.0050.00317.93
8.2.50.0030.00618.07
8.2.40.0040.00418.04
8.2.30.0040.00417.95
8.2.20.0040.00417.57
8.2.10.0050.00319.71
8.2.00.0060.00317.55
8.1.280.0100.01025.92
8.1.270.0050.00323.97
8.1.260.0000.00926.35
8.1.250.0070.00028.09
8.1.240.0060.00323.84
8.1.230.0040.00719.21
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0060.00317.40
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0040.00422.02
8.1.150.0060.00618.63
8.1.140.0000.00717.46
8.1.130.0040.00417.84
8.1.120.0040.00417.36
8.1.110.0000.00717.41
8.1.100.0040.00417.36
8.1.90.0110.00017.36
8.1.80.0060.00617.52
8.1.70.0000.00717.43
8.1.60.0000.00817.62
8.1.50.0030.00517.43
8.1.40.0000.00717.47
8.1.30.0040.00417.62
8.1.20.0030.00617.60
8.1.10.0080.00017.56
8.1.00.0070.00017.47
8.0.300.0020.00518.77
8.0.290.0070.00017.18
8.0.280.0030.00318.44
8.0.270.0070.00017.33
8.0.260.0030.00317.26
8.0.250.0080.00016.96
8.0.240.0050.00316.89
8.0.230.0040.00416.95
8.0.220.0000.00716.86
8.0.210.0070.00016.92
8.0.200.0000.00716.95
8.0.190.0040.00416.92
8.0.180.0040.00416.85
8.0.170.0000.00716.82
8.0.160.0030.00316.76
8.0.150.0000.00716.88
8.0.140.0080.00016.92
8.0.130.0000.00613.31
8.0.120.0040.00416.81
8.0.110.0050.00316.88
8.0.100.0020.00516.93
8.0.90.0000.00716.84
8.0.80.0150.00616.96
8.0.70.0040.00416.79
8.0.60.0040.00416.80
8.0.50.0070.00016.72
8.0.30.0150.00317.14
8.0.20.0100.01017.40
8.0.10.0060.00316.99
8.0.00.0080.00816.91
7.4.330.0060.00015.12
7.4.320.0000.00716.53
7.4.300.0000.00616.52
7.4.290.0000.00716.42
7.4.280.0000.00716.52
7.4.270.0030.00316.64
7.4.260.0030.00316.42
7.4.250.0000.00816.46
7.4.240.0020.00616.61
7.4.230.0070.00016.44
7.4.220.0170.00316.47
7.4.210.0070.00816.60
7.4.200.0030.00316.61
7.4.190.0030.00316.46
7.4.160.0060.00916.33
7.4.150.0140.01017.40
7.4.140.0120.00717.86
7.4.130.0060.01316.48
7.4.120.0070.01116.44
7.4.110.0080.00816.61
7.4.100.0060.01316.48
7.4.90.0100.00716.42
7.4.80.0090.01319.39
7.4.70.0090.00616.45
7.4.60.0070.01016.41
7.4.50.0060.00316.62
7.4.40.0030.01322.77
7.4.30.0140.00316.67
7.4.10.0070.01014.90
7.4.00.0070.00814.93
7.3.330.0000.00513.37
7.3.320.0030.00313.11
7.3.310.0040.00316.20
7.3.300.0070.00016.23
7.3.290.0120.00616.21
7.3.280.0070.00816.29
7.3.270.0090.00817.40
7.3.260.0120.00616.37
7.3.250.0130.00516.38
7.3.240.0110.00716.55
7.3.230.0150.00916.54
7.3.210.0060.01216.54
7.3.200.0140.00319.39
7.3.190.0080.00816.32
7.3.180.0040.01316.50
7.3.170.0090.00616.39
7.3.160.0060.00916.64
7.3.130.0060.00715.02
7.3.120.0090.00714.89
7.3.110.0090.00914.98
7.3.100.0060.00915.04
7.3.90.0070.01014.73
7.3.80.0000.01114.97
7.3.70.0080.00414.54
7.3.60.0030.00714.65
7.3.50.0130.00314.90
7.3.40.0070.00714.52
7.3.30.0090.00614.85
7.3.20.0030.00616.53
7.3.10.0060.00316.48
7.3.00.0120.00616.69
7.2.330.0070.01316.52
7.2.320.0100.00716.67
7.2.310.0060.01016.82
7.2.300.0070.01016.53
7.2.290.0030.01316.73
7.2.260.0060.01314.89
7.2.250.0070.01015.04
7.2.240.0060.00914.91
7.2.230.0000.01315.06
7.2.220.0060.00914.80
7.2.210.0000.01314.84
7.2.200.0040.01114.86
7.2.190.0030.00614.97
7.2.180.0030.01215.04
7.2.170.0090.00615.19
7.2.160.0100.00615.01
7.2.150.0070.00416.75
7.2.140.0060.00616.75
7.2.130.0060.00816.63
7.2.120.0040.00816.74
7.2.110.0060.01216.95
7.2.100.0100.00317.00
7.2.90.0070.01017.10
7.2.80.0030.01016.88
7.2.70.0060.00616.89
7.2.60.0030.01317.06
7.2.50.0000.01416.87
7.2.40.0060.00917.03
7.2.30.0060.00917.00
7.2.20.0140.00316.96
7.2.10.0070.00316.94
7.2.00.0050.01118.28
7.1.330.0030.01215.57
7.1.320.0030.01015.40
7.1.310.0060.00915.73
7.1.300.0030.00715.61
7.1.290.0030.00915.85
7.1.280.0030.01215.54
7.1.270.0040.00815.71
7.1.260.0040.01115.96
7.1.250.0070.00315.78
7.1.240.0080.00615.74
7.1.230.0090.00915.58
7.1.220.0000.01715.80
7.1.210.0040.00815.77
7.1.200.0000.01515.81
7.1.190.0030.01015.79
7.1.180.0060.00615.71
7.1.170.0040.01115.69
7.1.160.0040.01115.80
7.1.150.0030.00615.74
7.1.140.0030.00915.41
7.1.130.0100.00315.64
7.1.120.0110.00415.67
7.1.110.0090.00615.68
7.1.100.0070.00616.77
7.1.90.0070.00715.95
7.1.80.0110.00615.81
7.1.70.0030.01216.28
7.1.60.0050.01417.63
7.1.50.0080.01016.16
7.1.40.0040.00415.84
7.1.30.0090.00615.58
7.1.20.0060.00915.81
7.1.10.0030.01015.62
7.1.00.0050.04219.07
7.0.330.0060.00315.35
7.0.320.0030.00715.45
7.0.310.0120.00315.61
7.0.300.0060.00315.54
7.0.290.0000.01315.39
7.0.280.0000.01315.40
7.0.270.0030.00915.34
7.0.260.0090.00315.41
7.0.250.0070.00315.44
7.0.240.0030.00715.61
7.0.230.0000.01515.47
7.0.220.0100.00615.36
7.0.210.0040.00815.20
7.0.200.0100.00516.13
7.0.190.0090.00615.22
7.0.180.0000.00915.56
7.0.170.0060.00915.53
7.0.160.0000.01415.51
7.0.150.0100.00315.37
7.0.140.0060.04018.78
7.0.130.0040.01115.38
7.0.120.0070.00715.37
7.0.110.0070.01015.50
7.0.100.0060.00615.50
7.0.90.0090.00315.21
7.0.80.0030.00915.12
7.0.70.0120.00315.32
7.0.60.0030.04917.64
7.0.50.0050.02316.60
7.0.40.0050.03916.83
7.0.30.0130.03716.85
7.0.20.0180.03816.78
7.0.10.0030.04716.73
7.0.00.0050.03816.74
5.6.400.0030.00714.53
5.6.390.0030.01014.16
5.6.380.0060.00314.20
5.6.370.0090.00614.45
5.6.360.0070.00714.17
5.6.350.0030.00914.34
5.6.340.0120.00314.55
5.6.330.0060.00614.30
5.6.320.0070.00714.39
5.6.310.0080.00414.14
5.6.300.0030.01014.41
5.6.290.0150.00014.27
5.6.280.0050.04117.71
5.6.270.0090.00914.64
5.6.260.0030.00914.12
5.6.250.0040.01114.06
5.6.240.0040.00814.21
5.6.230.0030.01014.38
5.6.220.0070.01314.28
5.6.210.0120.04417.42
5.6.200.0060.02616.17
5.6.190.0070.03717.29
5.6.180.0160.02117.38
5.6.170.0150.02717.27
5.6.160.0060.02317.35
5.6.150.0070.02416.18
5.6.140.0020.04916.18
5.6.130.0060.03316.14
5.6.120.0050.04517.63
5.6.110.0070.04217.54
5.6.100.0060.03317.75
5.6.90.0130.03717.68
5.6.80.0050.04017.24
5.6.70.2250.02517.31
5.6.60.0070.01014.32
5.6.50.0070.01014.37
5.6.40.0090.00614.33
5.6.30.0030.01014.21
5.6.20.0030.01014.17
5.6.10.0100.00314.38
5.6.00.0080.00414.11
5.5.380.0000.00814.09
5.5.370.0030.01314.54
5.5.360.0040.01514.26
5.5.350.0080.04917.18
5.5.340.0100.03216.24
5.5.330.0090.02417.21
5.5.320.0270.02717.30
5.5.310.0220.03017.31
5.5.300.0050.04416.13
5.5.290.0090.03616.19
5.5.280.0110.02717.43
5.5.270.0100.04317.59
5.5.260.0100.04517.37
5.5.250.0060.04117.47
5.5.240.0160.03817.10
5.5.230.0030.01214.06
5.5.220.0100.00314.13
5.5.210.0070.01113.99
5.5.200.0070.00713.86
5.5.190.0140.00013.96
5.5.180.0090.00614.33
5.5.170.0000.01114.00
5.5.160.0120.00014.18
5.5.150.0030.01014.44
5.5.140.0040.01114.24
5.5.130.0000.01014.08
5.5.120.0100.00714.26
5.5.110.0120.00314.41
5.5.100.0040.01114.46
5.5.90.0100.00714.13
5.5.80.0040.00714.39
5.5.70.0100.00314.35
5.5.60.0040.01114.04
5.5.50.0030.01014.04
5.5.40.0070.00714.18
5.5.30.0040.00414.41
5.5.20.0040.01113.80
5.5.10.0040.01114.19
5.5.00.0030.01214.18
5.4.450.0450.03515.57
5.4.440.0550.02915.69
5.4.430.0100.02515.70
5.4.420.0350.00015.53
5.4.410.0090.02915.27
5.4.400.0070.03815.30
5.4.390.0200.02715.31
5.4.380.0100.03515.20
5.4.370.0070.02915.27
5.4.360.0050.02515.20
5.4.350.0080.01711.93
5.4.340.0050.02211.93
5.4.330.0110.00011.84
5.4.320.0060.02612.17
5.4.310.0020.03112.17
5.4.300.0040.02712.17
5.4.290.0060.02812.17
5.4.280.0030.02312.12
5.4.270.0050.02712.12
5.4.260.0050.02312.12
5.4.250.0080.02612.12
5.4.240.0060.02312.12
5.4.230.0070.02912.12
5.4.220.0040.02412.12
5.4.210.0090.02212.12
5.4.200.0050.03012.12
5.4.190.0100.02412.10
5.4.180.0100.02512.10
5.4.170.0130.02312.11
5.4.160.0130.02212.11
5.4.150.0100.02412.10
5.4.140.0110.02411.94
5.4.130.0080.02511.94
5.4.120.0070.02811.92
5.4.110.0120.02411.92
5.4.100.0120.02511.92
5.4.90.0110.02611.92
5.4.80.0110.02411.92
5.4.70.0120.02211.91
5.4.60.0090.02911.92
5.4.50.0140.02511.91
5.4.40.0070.02911.91
5.4.30.0130.02411.91
5.4.20.0090.02411.91
5.4.10.0090.02511.91
5.4.00.0100.02411.65
5.3.290.0050.02912.32
5.3.280.0050.02312.28
5.3.270.0090.02512.28
5.3.260.0080.02712.28
5.3.250.0100.02512.28
5.3.240.0110.02512.28
5.3.230.0110.02612.28
5.3.220.0090.02512.26
5.3.210.0100.02512.26
5.3.200.0120.02512.26
5.3.190.0110.02412.26
5.3.180.0080.02612.26
5.3.170.0110.02412.26
5.3.160.0110.02812.25
5.3.150.0090.02812.26
5.3.140.0150.02412.25
5.3.130.0120.02312.25
5.3.120.0090.02812.25
5.3.110.0100.02612.25
5.3.100.0100.02611.98
5.3.90.0110.02311.96
5.3.80.0090.02611.96
5.3.70.0130.02311.96
5.3.60.0100.02411.95
5.3.50.0110.02411.92
5.3.40.0080.02711.92
5.3.30.0090.02511.91
5.3.20.0050.02911.79
5.3.10.0110.02211.78
5.3.00.0120.02111.77
5.2.170.0150.0339.21
5.2.160.0110.0399.21
5.2.150.0150.0369.21
5.2.140.0180.0369.21
5.2.130.0180.0329.17
5.2.120.0110.0379.17
5.2.110.0140.0399.17
5.2.100.0070.0409.17
5.2.90.0140.0389.17
5.2.80.0110.0379.16
5.2.70.0170.0329.15
5.2.60.0120.0389.12
5.2.50.0140.0349.09
5.2.40.0120.0389.07
5.2.30.0120.0359.04
5.2.20.0190.0309.04
5.2.10.0090.0388.94
5.2.00.0100.0368.79
5.1.60.0130.0288.07
5.1.50.0120.0298.07
5.1.40.0130.0288.05
5.1.30.0120.0318.40
5.1.20.0180.0278.43
5.1.10.0140.0308.15
5.1.00.0090.0338.14
5.0.50.0070.0296.63
5.0.40.0110.0256.48
5.0.30.0080.0386.30
5.0.20.0100.0256.27
5.0.10.0100.0256.23
5.0.00.0080.0376.23
4.4.90.0070.0204.78
4.4.80.0070.0184.75
4.4.70.0110.0194.75
4.4.60.0120.0144.76
4.4.50.0070.0194.77
4.4.40.0060.0334.71
4.4.30.0150.0204.76
4.4.20.0080.0214.84
4.4.10.0060.0274.85
4.4.00.0100.0274.76
4.3.110.0100.0154.67
4.3.100.0050.0204.67
4.3.90.0090.0174.63
4.3.80.0100.0274.58
4.3.70.0110.0174.63
4.3.60.0080.0214.63
4.3.50.0080.0204.62
4.3.40.0070.0284.54
4.3.30.0050.0193.30
4.3.20.0050.0193.28
4.3.10.0060.0173.24
4.3.00.0200.0237.80

preferences:
46.34 ms | 401 KiB | 5 Q