3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dynamic { public function __call($key,$params){ if(!isset($this->{$key})) throw new Exception("Call to undefined method ".get_class($this)."::".$key."()"); $subject = $this->{$key}; call_user_func_array($subject,$params); } } $d = new Dynamic; $d->anotherMethod = function(){ echo "Hey there Georgie Girl"; }; $d->anotherMethod();

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.40.0110.00418.96
8.3.30.0070.01020.34
8.3.20.0030.00620.34
8.3.10.0080.00021.25
8.3.00.0090.00022.38
8.2.170.0070.00722.96
8.2.160.0100.00322.13
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0080.00019.83
8.2.110.0060.00319.13
8.2.100.0060.00617.91
8.2.90.0000.00819.05
8.2.80.0000.01017.97
8.2.70.0030.00617.50
8.2.60.0030.00718.04
8.2.50.0030.00518.07
8.2.40.0030.00618.15
8.2.30.0000.00719.52
8.2.20.0030.00517.54
8.2.10.0050.00217.74
8.2.00.0040.00417.66
8.1.270.0080.00023.99
8.1.260.0030.01026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.87
8.1.230.0080.00421.02
8.1.220.0080.00018.77
8.1.210.0000.01019.00
8.1.200.0090.00017.13
8.1.190.0040.00417.63
8.1.180.0060.00318.10
8.1.170.0080.00018.71
8.1.160.0000.00718.91
8.1.150.0080.00018.70
8.1.140.0000.00717.40
8.1.130.0050.00317.82
8.1.120.0030.00317.46
8.1.110.0050.00317.46
8.1.100.0040.00417.37
8.1.90.0070.00017.44
8.1.80.0050.00317.38
8.1.70.0000.00717.42
8.1.60.0050.00317.60
8.1.50.0000.00817.53
8.1.40.0040.00417.42
8.1.30.0000.00817.70
8.1.20.0000.00817.60
8.1.10.0040.00417.64
8.1.00.0040.00417.41
8.0.300.0080.00019.91
8.0.290.0050.00217.18
8.0.280.0000.00718.49
8.0.270.0000.00717.26
8.0.260.0030.00316.77
8.0.250.0100.00016.95
8.0.240.0030.00616.90
8.0.230.0030.00316.88
8.0.220.0070.00016.86
8.0.210.0000.00716.91
8.0.200.0000.00716.98
8.0.190.0000.00716.96
8.0.180.0050.00316.95
8.0.170.0070.00016.77
8.0.160.0070.00016.96
8.0.150.0040.00416.89
8.0.140.0040.00716.79
8.0.130.0000.00613.26
8.0.120.0030.00516.86
8.0.110.0060.00316.74
8.0.100.0040.00416.67
8.0.90.0000.00816.86
8.0.80.0040.01116.85
8.0.70.0040.00416.84
8.0.60.0030.00616.78
8.0.50.0070.00016.80
8.0.30.0160.00517.18
8.0.20.0120.01217.40
8.0.10.0000.00716.97
8.0.00.0100.01116.78
7.4.330.0020.00216.89
7.4.320.0000.00616.42
7.4.300.0000.00616.59
7.4.290.0000.00716.46
7.4.280.0030.00616.59
7.4.270.0050.00216.50
7.4.260.0030.00213.30
7.4.250.0030.00316.42
7.4.240.0000.00716.63
7.4.230.0030.00316.39
7.4.220.0090.00916.54
7.4.210.0070.00816.54
7.4.200.0030.00316.68
7.4.190.0000.00716.71
7.4.160.0040.01216.55
7.4.150.0180.00017.40
7.4.140.0140.00517.86
7.4.130.0080.00816.47
7.4.120.0090.00716.40
7.4.110.0140.00316.49
7.4.100.0110.00716.50
7.4.90.0160.00516.42
7.4.80.0140.01119.39
7.4.70.0100.00716.54
7.4.60.0110.00716.55
7.4.50.0040.00416.24
7.4.40.0000.01522.77
7.4.30.0150.00616.48
7.4.00.0090.00415.13
7.3.330.0030.00313.30
7.3.320.0000.00613.37
7.3.310.0070.00016.19
7.3.300.0030.00316.25
7.3.290.0040.01216.34
7.3.280.0070.00916.37
7.3.270.0090.01217.40
7.3.260.0100.00718.24
7.3.250.0060.01516.49
7.3.240.0090.00916.57
7.3.230.0130.00316.60
7.3.210.0060.01216.49
7.3.200.0050.01419.39
7.3.190.0100.00616.56
7.3.180.0120.01016.42
7.3.170.0040.01116.53
7.3.160.0140.00416.50
7.3.120.0040.00714.86
7.3.110.0090.00614.53
7.3.100.0100.00714.95
7.3.90.0080.00814.82
7.3.80.0100.00614.81
7.3.70.0090.00614.84
7.3.60.0030.00815.02
7.3.50.0060.00614.88
7.3.40.0040.00814.93
7.3.30.0070.00414.87
7.3.20.0100.00316.73
7.3.10.0070.00716.93
7.3.00.0030.00716.74
7.2.330.0080.00816.31
7.2.320.0130.00616.83
7.2.310.0150.00416.84
7.2.300.0130.00316.45
7.2.290.0030.01416.39
7.2.250.0070.00715.27
7.2.240.0090.00915.09
7.2.230.0040.00915.03
7.2.220.0030.00615.03
7.2.210.0040.01215.31
7.2.200.0100.00715.23
7.2.190.0070.00314.86
7.2.180.0100.00715.19
7.2.170.0070.01015.22
7.2.160.0080.00315.12
7.2.150.0070.01017.21
7.2.140.0060.01017.16
7.2.130.0000.01416.80
7.2.120.0000.01617.07
7.2.110.0060.00616.92
7.2.100.0070.00417.02
7.2.90.0070.01016.78
7.2.80.0060.00917.06
7.2.70.0150.00016.83
7.2.60.0100.00717.01
7.2.50.0040.01116.98
7.2.40.0070.01016.88
7.2.30.0000.01517.05
7.2.20.0060.01016.84
7.2.10.0130.00316.64
7.2.00.0110.00017.16
7.1.330.0070.00715.68
7.1.320.0070.00715.69
7.1.310.0060.00615.80
7.1.300.0090.00015.59
7.1.290.0070.00815.88
7.1.280.0040.00415.82
7.1.270.0000.00815.78
7.1.260.0090.00615.77
7.1.250.0030.01015.78
7.1.70.0000.00716.85
7.1.60.0110.01419.17
7.1.50.0240.01034.72
7.1.00.0000.03722.36
7.0.200.0000.00716.78
7.0.140.0000.07721.95
7.0.100.0030.04320.01
7.0.90.0130.03720.01
7.0.80.0030.04019.92
7.0.70.0030.04319.89
7.0.60.0070.04319.99
7.0.50.0070.04320.27
7.0.40.0100.03719.95
7.0.30.0030.03720.00
7.0.20.0070.04020.14
7.0.10.0000.04320.00
7.0.00.0100.03720.02
5.6.280.0070.07020.91
5.6.250.0100.06320.60
5.6.240.0070.05720.61
5.6.230.0070.04020.57
5.6.220.0030.04020.62
5.6.210.0070.04020.65
5.6.200.0030.04720.97
5.6.190.0000.04321.01
5.6.180.0030.04020.99
5.6.170.0000.04720.97
5.6.160.0030.04321.02
5.6.150.0000.03721.12
5.6.140.0100.03021.04
5.6.130.0030.03720.95
5.6.120.0070.04021.18
5.6.110.0030.03721.03
5.6.100.0070.04021.05
5.6.90.0030.04721.03
5.6.80.0070.05320.45
5.6.70.0070.07720.34
5.6.60.0070.05020.31
5.6.50.0000.09020.41
5.6.40.0000.05320.44
5.6.30.0030.07320.40
5.6.20.0100.06320.39
5.6.10.0070.07020.37
5.6.00.0070.03720.38
5.5.380.0070.03720.37
5.5.370.0000.05020.43
5.5.360.0000.04320.42
5.5.350.0030.04320.43
5.5.340.0000.04320.90
5.5.330.0070.04020.79
5.5.320.0100.04720.90
5.5.310.0000.03720.88
5.5.300.0070.04020.64
5.5.290.0000.04720.76
5.5.280.0030.03720.65
5.5.270.0030.04320.91
5.5.260.0030.04720.88
5.5.250.0100.03720.68
5.5.240.0070.04020.29
5.5.230.0000.04320.22
5.5.220.0030.08020.31
5.5.210.0000.06320.26
5.5.200.0100.07720.25
5.5.190.0070.03720.20
5.5.180.0100.05020.25
5.5.160.0170.06320.25
5.5.150.0130.07020.00
5.5.140.0070.04020.00
5.5.130.0100.05720.25
5.5.120.0100.04020.23
5.5.110.0030.04020.24
5.5.100.0030.08320.18
5.5.90.0030.08020.15
5.5.80.0000.04719.97
5.5.70.0000.08720.15
5.5.60.0100.07020.05
5.5.50.0030.07720.14
5.5.40.0100.05019.97
5.5.30.0070.08020.16
5.5.20.0130.06319.96
5.5.10.0170.03019.97
5.5.00.0230.06320.13
5.4.450.0100.03719.53
5.4.440.0030.04019.27
5.4.430.0100.04019.35
5.4.420.0070.03019.45
5.4.410.0030.05019.28
5.4.400.0070.03318.86
5.4.390.0100.06719.16
5.4.380.0030.06319.04
5.4.370.0030.03719.18
5.4.360.0030.06319.20
5.4.350.0100.03319.15
5.4.340.0130.07019.20
5.4.320.0130.05318.82
5.4.310.0030.08319.05
5.4.300.0100.07319.12
5.4.290.0130.07019.21
5.4.280.0130.05318.90
5.4.270.0070.07719.09
5.4.260.0070.07719.13
5.4.250.0100.07019.04
5.4.240.0070.07019.12
5.4.230.0100.07018.90
5.4.220.0030.03719.13
5.4.210.0070.07319.04
5.4.200.0070.04319.06
5.4.190.0070.07319.02
5.4.180.0070.07719.23
5.4.170.0200.03719.17
5.4.160.0030.08019.08
5.4.150.0000.05019.02
5.4.140.0030.05316.35
5.4.130.0030.04016.19
5.4.120.0170.06316.11
5.4.110.0030.05716.43
5.4.100.0030.04716.39
5.4.90.0130.05316.35
5.4.80.0070.05716.38
5.4.70.0030.04316.34
5.4.60.0100.08316.40
5.4.50.0070.06016.53
5.4.40.0070.06716.50
5.4.30.0000.04016.56
5.4.20.0130.02716.24
5.4.10.0070.06016.48
5.4.00.0030.07715.68
5.3.290.0000.06014.81
5.3.280.0030.07314.65
5.3.270.0070.07314.67
5.3.260.0030.07014.61
5.3.250.0030.06714.73
5.3.240.0070.07714.54
5.3.230.0070.06014.74
5.3.220.0130.05714.52
5.3.210.0070.04314.62
5.3.200.0130.07014.50
5.3.190.0070.07714.63
5.3.180.0170.06014.67
5.3.170.0100.06314.55
5.3.160.0100.07314.50
5.3.150.0000.07014.57
5.3.140.0070.06014.49
5.3.130.0070.07314.55
5.3.120.0070.04314.57
5.3.110.0070.03714.52
5.3.100.0070.06013.96
5.3.90.0070.03314.02
5.3.80.0130.06714.07
5.3.70.0070.06014.09
5.3.60.0030.06714.07
5.3.50.0100.07014.07
5.3.40.0130.07014.09
5.3.30.0130.06713.81
5.3.20.0070.05313.84
5.3.10.0000.07313.71
5.3.00.0100.06013.62
5.2.170.0200.03012.20
5.2.160.0070.06012.20
5.2.150.0070.06012.20
5.2.140.0000.06312.20
5.2.130.0030.06312.20
5.2.120.0100.02312.20
5.2.110.0030.05312.20
5.2.100.0070.03312.20
5.2.90.0030.03012.20
5.2.80.0030.04012.20
5.2.70.0000.04312.20
5.2.60.0030.05012.20
5.2.50.0000.06012.20
5.2.40.0030.05712.20
5.2.30.0070.06312.20
5.2.20.0000.03712.20
5.2.10.0100.04312.20
5.2.00.0000.05712.20
5.1.60.0100.01712.20
5.1.50.0030.02312.20
5.1.40.0070.02012.20
5.1.30.0000.03312.20
5.1.20.0000.04712.20
5.1.10.0000.05712.20
5.1.00.0000.03312.20
5.0.50.0030.04312.20
5.0.40.0030.04312.20
5.0.30.0030.05012.20
5.0.20.0070.01712.20
5.0.10.0030.02712.20
5.0.00.0030.03312.20
4.4.90.0030.03312.20
4.4.80.0000.01712.20
4.4.70.0030.02012.20
4.4.60.0030.02012.20
4.4.50.0030.01712.20
4.4.40.0070.02012.20
4.4.30.0000.02312.20
4.4.20.0030.03312.20
4.4.10.0130.02712.20
4.4.00.0100.02312.20
4.3.110.0000.02312.20
4.3.100.0030.02012.20
4.3.90.0100.02312.20
4.3.80.0000.05312.20
4.3.70.0030.02712.20
4.3.60.0070.03012.20
4.3.50.0000.02712.20
4.3.40.0000.05012.20
4.3.30.0030.02012.20
4.3.20.0030.03712.20
4.3.10.0030.03312.20
4.3.00.0070.01312.20

preferences:
42.36 ms | 400 KiB | 5 Q