3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function __call($name, $args){ echo "__call " . $name; } public static function __callStatic($name, $args) { echo "__callStatic " . $name; } function make_call() { $this->bob(); } function make_call_static() { self::ted(); } } $x = new foo(); $foo->jim;

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.0090.00916.50
8.3.50.0150.00317.49
8.3.40.0040.01118.68
8.3.30.0070.00718.55
8.3.20.0050.00318.64
8.3.10.0040.00420.40
8.3.00.0060.00317.63
8.2.180.0150.00016.63
8.2.170.0030.01022.96
8.2.160.0140.00420.46
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00719.77
8.2.110.0060.00321.06
8.2.100.0000.01117.72
8.2.90.0000.00819.23
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0000.00818.09
8.2.30.0060.00318.03
8.2.20.0000.00717.66
8.2.10.0000.00819.33
8.2.00.0050.00217.56
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0130.01022.46
8.1.230.0120.00020.89
8.1.220.0000.00818.77
8.1.210.0040.00418.89
8.1.200.0030.00617.23
8.1.190.0040.00417.41
8.1.180.0060.00318.10
8.1.170.0080.00018.82
8.1.160.0040.00418.87
8.1.150.0040.00418.49
8.1.140.0000.00717.44
8.1.130.0040.00417.84
8.1.120.0030.00617.36
8.1.110.0000.00817.47
8.1.100.0040.00417.36
8.1.90.0040.00417.38
8.1.80.0070.00017.45
8.1.70.0000.00717.36
8.1.60.0040.00417.56
8.1.50.0030.00617.30
8.1.40.0040.00417.45
8.1.30.0040.00417.61
8.1.20.0000.00817.59
8.1.10.0000.00817.49
8.1.00.0040.00417.40
8.0.300.0040.00419.98
8.0.290.0000.00716.75
8.0.280.0000.00718.29
8.0.270.0070.00017.29
8.0.260.0050.00316.82
8.0.250.0040.00416.87
8.0.240.0030.00616.95
8.0.230.0070.00016.83
8.0.220.0000.00616.92
8.0.210.0030.00316.90
8.0.200.0040.00416.95
8.0.190.0000.00716.87
8.0.180.0000.00716.91
8.0.170.0030.00616.83
8.0.160.0040.00416.89
8.0.150.0080.00016.79
8.0.140.0120.00016.88
8.0.130.0000.00513.36
8.0.120.0080.00016.76
8.0.110.0000.00716.88
8.0.100.0000.00816.77
8.0.90.0000.00716.85
8.0.80.0090.00616.96
8.0.70.0040.00416.81
8.0.60.0030.00516.89
8.0.50.0000.00816.74
8.0.30.0050.01417.15
8.0.20.0100.01017.04
8.0.10.0040.00417.13
8.0.00.0110.00816.64
7.4.330.0000.00512.82
7.4.320.0000.00716.55
7.4.300.0030.00316.54
7.4.290.0040.00416.44
7.4.280.0060.00316.46
7.4.270.0000.00716.35
7.4.260.0000.00613.15
7.4.250.0060.00316.36
7.4.240.0000.00716.38
7.4.230.0060.00016.46
7.4.220.0110.00716.58
7.4.210.0060.00816.48
7.4.200.0070.00016.54
7.4.190.0000.00716.35
7.4.160.0070.01016.46
7.4.150.0080.01116.61
7.4.140.0140.00616.40
7.4.130.0060.01016.36
7.4.120.0150.00516.57
7.4.110.0070.01016.41
7.4.100.0100.00716.58
7.4.90.0110.00716.41
7.4.80.0090.00916.28
7.4.70.0100.01016.57
7.4.60.0110.00616.37
7.4.50.0040.00416.24
7.4.40.0070.00716.21
7.4.30.0070.01016.37
7.4.00.0120.00314.71
7.3.330.0000.00613.23
7.3.320.0000.00613.02
7.3.310.0000.00616.11
7.3.300.0000.00616.18
7.3.290.0070.01316.17
7.3.280.0090.00816.22
7.3.270.0070.01116.14
7.3.260.0110.01116.38
7.3.250.0110.00716.32
7.3.240.0080.01116.56
7.3.230.0120.00416.40
7.3.210.0110.00516.20
7.3.200.0120.00319.39
7.3.190.0080.00816.21
7.3.180.0040.01116.45
7.3.170.0060.01616.20
7.3.160.0060.01316.27
7.3.120.0070.00714.72
7.3.10.0110.00316.07
7.3.00.0130.00316.49
7.2.330.0030.01316.63
7.2.320.0160.00316.65
7.2.310.0080.01216.39
7.2.300.0090.00916.66
7.2.290.0030.01616.26
7.2.130.0090.00616.61
7.2.120.0040.01216.67
7.2.110.0030.00916.69
7.2.100.0000.01116.79
7.2.90.0030.01017.04
7.2.80.0090.00316.89
7.2.70.0060.01216.43
7.2.60.0050.00916.50
7.2.50.0000.00916.66
7.2.40.0030.00716.86
7.2.30.0060.01017.00
7.2.20.0040.00816.79
7.2.10.0090.00616.58
7.2.00.0060.00616.64
7.1.250.0040.00715.56
7.1.240.0110.00415.65
7.1.230.0100.00015.57
7.1.220.0000.01215.40
7.1.210.0070.00715.16
7.1.200.0100.00315.44
7.1.190.0040.00415.28
7.1.180.0060.00315.59
7.1.170.0000.01415.58
7.1.160.0040.00415.47
7.1.150.0040.00715.80
7.1.140.0000.00915.32
7.1.130.0110.00615.68
7.1.120.0040.00715.79
7.1.110.0040.00415.70
7.1.100.0070.00616.60
7.1.90.0040.00415.53
7.1.80.0040.00715.50
7.1.70.0070.00716.20
7.1.60.0080.01117.46
7.1.50.0120.00516.09
7.1.40.0090.00015.34
7.1.30.0070.01015.55
7.1.20.0060.00615.64
7.1.10.0030.00615.84
7.1.00.0020.04518.89
7.0.330.0070.00714.93
7.0.320.0040.00915.16
7.0.310.0070.00715.24
7.0.300.0070.00715.21
7.0.290.0080.00315.30
7.0.280.0060.00315.34
7.0.270.0070.00315.30
7.0.260.0000.00815.24
7.0.250.0080.00815.33
7.0.240.0080.00315.47
7.0.230.0060.00615.34
7.0.220.0030.00915.31
7.0.210.0060.00915.16
7.0.200.0060.00415.90
7.0.190.0030.00915.46
7.0.180.0100.00315.45
7.0.170.0040.01115.41
7.0.160.0040.00415.34
7.0.150.0070.00715.36
7.0.140.0030.04218.71
7.0.130.0070.00715.46
7.0.120.0080.03818.73
7.0.110.0030.00515.34
7.0.100.0060.00615.25
7.0.90.0100.00315.42
7.0.80.0000.01115.04
7.0.70.0040.00815.29
7.0.60.0020.03317.54
7.0.50.0090.01916.53
7.0.40.0090.04216.70
7.0.30.0110.02916.87
7.0.20.0070.02516.72
7.0.10.0130.02516.64
7.0.00.0020.04316.77
5.6.380.0060.00314.21
5.6.370.0030.00914.17
5.6.360.0080.00813.71
5.6.350.0060.00613.88
5.6.340.0070.00714.09
5.6.330.0030.00614.28
5.6.320.0040.00413.94
5.6.310.0060.00614.29
5.6.300.0070.01014.11
5.6.290.0030.00614.12
5.6.280.0070.03717.50
5.6.270.0060.00314.01
5.6.260.0040.01114.26
5.6.250.0000.01114.28
5.6.240.0030.00714.41
5.6.230.0000.00814.16
5.6.220.0030.01014.11
5.6.210.0040.02417.52
5.6.200.0050.02816.12
5.6.190.0020.02817.33
5.6.180.0130.03017.46
5.6.170.0160.03817.57
5.6.160.0090.02717.42
5.6.150.0090.02916.19
5.6.140.0020.02716.23
5.6.130.0070.04516.22
5.6.120.0100.04017.58
5.6.110.0080.04017.54
5.6.100.0080.04517.56
5.6.90.0110.02917.51
5.6.80.0110.01817.35
5.6.70.0170.03717.41
5.6.60.0100.00314.14
5.6.50.0070.00714.05
5.6.40.0030.01013.97
5.6.30.0000.01414.22
5.6.20.0100.00314.26
5.6.10.0040.00714.17
5.6.00.0040.01114.37
5.5.380.0030.00710.89
5.5.370.0080.00010.69
5.5.360.0040.01210.73
5.5.350.0100.04315.73
5.5.340.0040.03714.57
5.5.330.0050.03915.77
5.5.320.0030.02715.75
5.5.310.0150.04315.70
5.5.300.0030.02314.38
5.5.290.0080.03914.49
5.5.280.0050.04416.01
5.5.270.0050.03316.12
5.5.260.0080.04015.83
5.5.250.0090.03015.71
5.5.240.0070.04115.60
5.5.230.0000.01111.01
5.5.220.0030.00910.84
5.5.210.0070.00711.02
5.5.200.0000.00910.67
5.5.190.0000.00910.80
5.5.180.0100.00011.01
5.5.170.0060.00610.60
5.5.160.0090.00310.87
5.5.150.0050.00310.93
5.5.140.0110.00010.83
5.5.130.0100.00010.80
5.5.120.0040.00711.21
5.5.110.0060.00311.26
5.5.100.0040.00710.91
5.5.90.0060.00311.10
5.5.80.0030.01010.80
5.5.70.0040.00710.77
5.5.60.0000.01311.04
5.5.50.0070.00410.69
5.5.40.0070.00310.89
5.5.30.0030.00311.09
5.5.20.0000.01110.92
5.5.10.0090.00310.86
5.5.00.0030.01010.83
5.4.450.0060.04315.36
5.4.440.0080.04015.27
5.4.430.0070.04215.17
5.4.420.0080.04215.30
5.4.410.0120.03515.20
5.4.400.0110.03514.98
5.4.390.0080.03914.99
5.4.380.0080.03814.98
5.4.370.0100.02714.88
5.4.360.0050.03514.88
5.4.350.0030.03814.82
5.4.340.0050.03814.86
5.4.330.0040.00410.71
5.4.320.0080.03014.83
5.4.310.0120.03014.88
5.4.300.0080.03314.82
5.4.290.0020.04515.04
5.4.280.0070.03714.68
5.4.270.0050.04514.88
5.4.260.0030.02515.01
5.4.250.0030.03014.87
5.4.240.0080.02814.94
5.4.230.0110.03514.84
5.4.220.0050.02815.08
5.4.210.0080.03715.02
5.4.200.0020.03714.72
5.4.190.0100.03614.93
5.4.180.0030.03814.88
5.4.170.0020.04514.97
5.4.160.0070.03214.86
5.4.150.0080.04014.83
5.4.140.0050.04313.65
5.4.130.0050.03213.54
5.4.120.0050.02013.40
5.4.110.0030.03113.57
5.4.100.0030.03013.48
5.4.90.0050.02813.51
5.4.80.0060.03613.55
5.4.70.0100.03413.42
5.4.60.0080.03213.53
5.4.50.0050.02213.52
5.4.40.0060.04113.59
5.4.30.0070.03913.50
5.4.20.0030.03813.78
5.4.10.0060.01813.57
5.4.00.0020.02213.22
5.3.290.0020.02712.66
5.3.280.0020.02812.46
5.3.270.0020.04712.35
5.3.260.0050.04012.52
5.3.250.0030.04212.40
5.3.240.0110.01512.38
5.3.230.0050.02312.56
5.3.220.0020.04512.40
5.3.210.0020.03812.48
5.3.200.0050.03812.44
5.3.190.0020.02512.44
5.3.180.0060.02312.58
5.3.170.0030.03912.57
5.3.160.0070.03512.56
5.3.150.0050.04012.48
5.3.140.0050.02112.54
5.3.130.0080.02012.60
5.3.120.0030.03812.54
5.3.110.0050.02312.60
5.3.100.0060.03812.34
5.3.90.0050.02712.18
5.3.80.0070.03912.25
5.3.70.0090.03512.20
5.3.60.0050.02512.32
5.3.50.0070.02812.07
5.3.40.0100.02812.31
5.3.30.0030.04112.16
5.3.20.0050.03812.08
5.3.10.0080.03511.96
5.3.00.0090.02011.82
5.2.170.0060.03310.32
5.2.160.0050.03310.38
5.2.150.0050.03510.22
5.2.140.0030.02110.40
5.2.130.0020.02810.34
5.2.120.0020.02510.33
5.2.110.0030.03310.20
5.2.100.0050.01610.18
5.2.90.0060.03210.27
5.2.80.0050.03410.21
5.2.70.0050.03410.11
5.2.60.0030.03510.20
5.2.50.0050.02910.14
5.2.40.0030.03510.22
5.2.30.0070.03210.05
5.2.20.0070.03010.21
5.2.10.0050.0239.90
5.2.00.0020.0219.88
5.1.60.0000.0209.39
5.1.50.0080.0269.34
5.1.40.0020.0349.33
5.1.30.0030.0329.59
5.1.20.0050.0329.58
5.1.10.0010.0309.42
5.1.00.0060.0269.41
5.0.50.0060.0208.74
5.0.40.0040.0198.63
5.0.30.0020.0178.48
5.0.20.0040.0088.48
5.0.10.0030.0108.47
5.0.00.0030.0158.54
4.4.90.0030.0178.36
4.4.80.0030.0178.36
4.4.70.0030.0188.36
4.4.60.0030.0178.36
4.4.50.0010.0218.36
4.4.40.0030.0178.36
4.4.30.0080.0158.36
4.4.20.0020.0138.36
4.4.10.0020.0188.36
4.4.00.0030.0278.36
4.3.110.0030.0108.36
4.3.100.0000.0128.36
4.3.90.0000.0098.36
4.3.80.0020.0138.36
4.3.70.0050.0078.36
4.3.60.0000.0128.36
4.3.50.0020.0108.36
4.3.40.0030.0138.36
4.3.30.0010.0088.36
4.3.20.0000.0118.36
4.3.10.0000.0128.36
4.3.00.0000.0098.36

preferences:
42.17 ms | 401 KiB | 5 Q