3v4l.org

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

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.0060.01216.50
8.3.50.0100.01217.37
8.3.40.0040.01118.97
8.3.30.0080.00818.68
8.3.20.0040.00418.48
8.3.10.0060.00320.38
8.3.00.0060.00319.25
8.2.180.0100.00718.18
8.2.170.0140.00722.96
8.2.160.0090.00620.70
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0030.00918.82
8.2.110.0050.00520.94
8.2.100.0090.00317.59
8.2.90.0000.00819.29
8.2.80.0070.00019.21
8.2.70.0060.00317.63
8.2.60.0030.00517.93
8.2.50.0000.00818.07
8.2.40.0080.00018.34
8.2.30.0000.00718.04
8.2.20.0000.00919.38
8.2.10.0040.00417.74
8.2.00.0040.00417.68
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0090.00022.14
8.1.230.0110.00020.90
8.1.220.0050.00318.77
8.1.210.0030.00618.95
8.1.200.0060.00317.23
8.1.190.0000.00817.52
8.1.180.0000.00818.10
8.1.170.0040.00418.91
8.1.160.0000.00718.93
8.1.150.0040.00418.59
8.1.140.0040.00417.45
8.1.130.0000.00817.74
8.1.120.0030.00417.48
8.1.110.0040.00417.34
8.1.100.0030.00317.36
8.1.90.0070.00017.52
8.1.80.0030.00317.32
8.1.70.0060.00317.37
8.1.60.0020.00517.57
8.1.50.0050.00317.36
8.1.40.0040.00417.45
8.1.30.0000.00817.69
8.1.20.0000.00717.54
8.1.10.0030.00517.60
8.1.00.0040.00417.47
8.0.300.0040.00419.86
8.0.290.0070.00016.75
8.0.280.0050.00318.45
8.0.270.0050.00217.30
8.0.260.0070.00016.87
8.0.250.0040.00416.99
8.0.240.0040.00416.98
8.0.230.0030.00316.93
8.0.220.0030.00316.84
8.0.210.0030.00316.77
8.0.200.0000.00616.83
8.0.190.0070.00016.92
8.0.180.0040.00416.89
8.0.170.0050.00316.71
8.0.160.0040.00416.91
8.0.150.0060.00316.75
8.0.140.0030.00616.82
8.0.130.0000.00613.28
8.0.120.0040.00416.85
8.0.110.0040.00416.92
8.0.100.0040.00416.77
8.0.90.0030.00516.76
8.0.80.0090.00916.84
8.0.70.0040.00416.84
8.0.60.0000.00716.64
8.0.50.0000.00716.60
8.0.30.0040.01417.24
8.0.20.0160.00617.02
8.0.10.0040.00416.96
8.0.00.0140.00816.80
7.4.330.0020.00212.91
7.4.320.0000.00616.52
7.4.300.0070.00016.59
7.4.290.0000.00716.42
7.4.280.0100.00016.57
7.4.270.0040.00416.43
7.4.260.0050.00013.23
7.4.250.0040.00416.56
7.4.240.0080.00016.41
7.4.230.0000.00716.58
7.4.220.0170.01116.60
7.4.210.0100.00616.62
7.4.200.0000.00716.63
7.4.190.0000.00816.69
7.4.160.0070.00916.57
7.4.150.0070.01016.55
7.4.140.0100.00616.59
7.4.130.0110.01216.56
7.4.120.0120.01016.67
7.4.110.0050.00916.61
7.4.100.0060.01316.43
7.4.90.0140.01016.30
7.4.80.0110.00719.39
7.4.70.0090.00916.62
7.4.60.0070.01016.55
7.4.50.0000.00716.28
7.4.40.0090.00916.44
7.4.30.0040.01216.60
7.4.00.0050.01314.85
7.3.330.0000.00713.16
7.3.320.0030.00313.10
7.3.310.0040.00416.28
7.3.300.0070.00016.30
7.3.290.0040.01316.24
7.3.280.0110.00816.23
7.3.270.0060.01216.35
7.3.260.0120.00916.28
7.3.250.0120.00916.53
7.3.240.0100.00616.59
7.3.230.0140.00316.55
7.3.210.0030.01316.46
7.3.200.0030.01316.28
7.3.190.0080.00816.63
7.3.180.0060.01216.30
7.3.170.0110.01016.45
7.3.160.0040.01416.42
7.3.120.0100.00514.89
7.3.110.0140.00414.84
7.3.100.0100.01014.91
7.3.90.0060.00914.55
7.3.80.0030.00714.82
7.3.70.0060.00314.55
7.3.60.0150.00014.93
7.3.50.0050.00514.64
7.3.40.0030.01014.87
7.3.30.0070.01014.55
7.3.20.0040.00416.57
7.3.10.0030.00616.61
7.3.00.0080.00516.74
7.2.330.0040.01416.62
7.2.320.0160.00016.75
7.2.310.0140.00616.84
7.2.300.0120.00616.54
7.2.290.0140.00316.66
7.2.250.0030.01515.27
7.2.240.0110.00714.96
7.2.230.0060.00915.00
7.2.220.0040.00715.30
7.2.210.0060.00915.25
7.2.200.0080.00815.05
7.2.190.0120.00315.18
7.2.180.0070.00714.99
7.2.170.0120.00315.18
7.2.160.0000.01115.13
7.2.150.0140.00316.87
7.2.140.0000.01116.89
7.2.130.0030.01216.79
7.2.120.0040.00716.92
7.2.110.0030.00816.93
7.2.100.0040.00616.77
7.2.90.0070.00617.06
7.2.80.0020.00916.82
7.2.70.0050.01016.85
7.2.60.0050.01016.78
7.2.50.0040.00916.88
7.2.40.0050.00916.92
7.2.30.0030.01016.89
7.2.20.0090.00516.81
7.2.10.0050.00916.74
7.2.00.0070.00417.60
7.1.330.0100.00615.88
7.1.320.0000.01315.66
7.1.310.0070.01016.13
7.1.300.0060.00915.55
7.1.290.0030.00915.50
7.1.280.0060.00615.55
7.1.270.0000.01415.73
7.1.260.0070.00715.73
7.1.250.0140.00515.56
7.1.240.0020.00715.76
7.1.230.0050.00415.80
7.1.220.0070.00415.80
7.1.210.0070.00415.65
7.1.200.0070.00515.65
7.1.190.0080.00315.64
7.1.180.0050.00515.59
7.1.170.0080.00415.49
7.1.160.0110.00315.62
7.1.150.0050.00715.80
7.1.140.0080.00715.68
7.1.130.0050.00715.64
7.1.120.0120.00315.47
7.1.110.0090.00315.61
7.1.100.0100.00616.47
7.1.90.0070.00315.61
7.1.80.0030.00815.62
7.1.70.0050.00816.34
7.1.60.0090.00816.86
7.1.50.0070.00716.08
7.1.40.0030.01115.66
7.1.30.0050.00715.64
7.1.20.0120.00715.67
7.1.10.0020.01015.55
7.1.00.0020.03117.87
7.0.330.0020.00915.43
7.0.320.0050.00715.27
7.0.310.0080.00515.27
7.0.300.0060.00815.37
7.0.290.0180.00315.10
7.0.280.0070.00715.28
7.0.270.0050.00815.47
7.0.260.0030.00915.44
7.0.250.0080.00515.34
7.0.240.0070.00515.49
7.0.230.0030.00915.54
7.0.220.0060.00915.32
7.0.210.0110.00615.45
7.0.200.0040.00515.11
7.0.190.0000.01115.53
7.0.180.0050.00815.40
7.0.170.0040.00915.10
7.0.160.0070.00715.43
7.0.150.0070.00815.38
7.0.140.0010.03117.58
7.0.130.0050.00715.40
7.0.120.0070.02717.54
7.0.110.0070.00515.30
7.0.100.0030.00715.47
7.0.90.0020.00715.41
7.0.80.0020.01015.39
7.0.70.0030.01015.46
7.0.60.0080.03116.95
7.0.50.0070.02916.20
7.0.40.0050.01915.68
7.0.30.0210.02815.73
7.0.20.0150.03015.61
7.0.10.0130.01715.58
7.0.00.0040.02015.76
5.6.400.0040.00814.30
5.6.390.0120.00614.52
5.6.380.0080.00614.20
5.6.370.0050.00714.52
5.6.360.0050.01014.09
5.6.350.0050.00614.34
5.6.340.0030.00914.09
5.6.330.0060.00714.13
5.6.320.0070.00614.02
5.6.310.0060.00614.35
5.6.300.0030.01114.27
5.6.290.0050.00414.37
5.6.280.0030.03116.67
5.6.270.0090.00314.34
5.6.260.0080.00514.24
5.6.250.0050.00814.48
5.6.240.0040.00914.29
5.6.230.0020.01014.17
5.6.220.0050.00814.32
5.6.210.0070.03016.42
5.6.200.0050.03115.58
5.6.190.0060.02016.30
5.6.180.0090.02216.47
5.6.170.0170.02816.39
5.6.160.0080.01616.30
5.6.150.0090.02915.54
5.6.140.0060.02715.66
5.6.130.0050.03215.54
5.6.120.0090.03216.46
5.6.110.0020.03016.51
5.6.100.0100.02816.59
5.6.90.0090.03216.34
5.6.80.0100.01816.24
5.6.70.0190.02616.40
5.6.60.0040.00814.23
5.6.50.0060.00914.29
5.6.40.0060.00414.28
5.6.30.0030.00814.37
5.6.20.0040.00714.26
5.6.10.0050.00714.24
5.6.00.0020.00914.14
5.5.380.0010.01012.79
5.5.370.0040.00612.73
5.5.360.0040.00812.72
5.5.350.0090.01715.31
5.5.340.0060.01614.39
5.5.330.0040.02615.26
5.5.320.0180.02315.12
5.5.310.0130.02015.31
5.5.300.0060.03314.61
5.5.290.0060.01814.52
5.5.280.0050.02815.23
5.5.270.0080.02515.48
5.5.260.0050.02015.42
5.5.250.0080.02915.28
5.5.240.0040.03215.20
5.5.230.0080.00612.59
5.5.220.0010.01012.49
5.5.210.0020.00812.66
5.5.200.0040.01012.23
5.5.190.0020.01112.69
5.5.180.0030.00612.54
5.5.170.0080.00212.45
5.5.160.0030.00812.59
5.5.150.0070.00512.59
5.5.140.0020.00812.74
5.5.130.0050.00612.73
5.5.120.0050.00912.77
5.5.110.0030.01012.61
5.5.100.0030.00812.68
5.5.90.0000.01112.64
5.5.80.0080.00612.59
5.5.70.0010.00812.79
5.5.60.0050.00712.78
5.5.50.0070.00312.54
5.5.40.0030.00712.52
5.5.30.0090.00312.66
5.5.20.0090.00412.44
5.5.10.0090.00112.67
5.5.00.0090.00512.50
5.4.450.0050.01914.26
5.4.440.0070.01614.19
5.4.430.0060.02114.14
5.4.420.0050.01614.13
5.4.410.0050.02514.06
5.4.400.0080.01413.98
5.4.390.0070.01614.12
5.4.380.0060.02313.98
5.4.370.0090.01214.11
5.4.360.0030.01713.86
5.4.350.0050.01813.97
5.4.340.0060.02914.13
5.4.330.0020.00611.43
5.4.320.0060.02614.17
5.4.310.0020.03114.12
5.4.300.0030.01814.15
5.4.290.0020.02514.10
5.4.280.0090.02214.04
5.4.270.0060.02714.18
5.4.260.0070.02213.99
5.4.250.0040.02214.15
5.4.240.0040.02714.03
5.4.230.0040.01514.04
5.4.220.0060.01613.92
5.4.210.0060.01813.99
5.4.200.0050.01514.02
5.4.190.0090.01214.08
5.4.180.0040.01614.03
5.4.170.0020.03214.04
5.4.160.0050.01514.05
5.4.150.0090.01514.06
5.4.140.0040.01613.26
5.4.130.0050.02813.18
5.4.120.0010.02113.19
5.4.110.0050.02113.09
5.4.100.0040.03013.09
5.4.90.0020.02213.06
5.4.80.0020.01713.30
5.4.70.0070.01513.06
5.4.60.0040.03113.20
5.4.50.0050.02613.16
5.4.40.0030.02213.08
5.4.30.0020.01713.18
5.4.20.0040.02813.21
5.4.10.0030.02513.15
5.4.00.0050.01712.96
5.3.290.0040.02012.52
5.3.280.0060.02912.42
5.3.270.0040.01512.45
5.3.260.0010.02012.41
5.3.250.0030.02412.44
5.3.240.0050.02612.49
5.3.230.0040.01512.48
5.3.220.0060.02012.42
5.3.210.0070.01712.30
5.3.200.0060.01412.37
5.3.190.0030.01612.45
5.3.180.0030.01612.42
5.3.170.0060.02712.50
5.3.160.0020.01612.40
5.3.150.0060.02812.45
5.3.140.0020.02512.42
5.3.130.0070.02112.40
5.3.120.0050.01612.47
5.3.110.0040.01612.44
5.3.100.0020.01812.26
5.3.90.0030.01612.33
5.3.80.0040.02512.18
5.3.70.0070.02612.22
5.3.60.0040.02112.23
5.3.50.0030.01812.15
5.3.40.0060.02612.28
5.3.30.0040.03112.23
5.3.20.0030.02912.23
5.3.10.0040.02712.03
5.3.00.0050.02312.10
5.2.170.0030.03310.68
5.2.160.0050.03310.73
5.2.150.0020.03510.70
5.2.140.0030.03710.78
5.2.130.0040.03310.71
5.2.120.0020.03510.72
5.2.110.0040.03010.70
5.2.100.0030.02810.76
5.2.90.0100.02210.70
5.2.80.0030.02010.76
5.2.70.0040.03510.68
5.2.60.0000.02810.61
5.2.50.0060.02610.64
5.2.40.0030.03310.66
5.2.30.0030.02310.64
5.2.20.0000.03110.69
5.2.10.0040.01610.54
5.2.00.0080.02210.47
5.1.60.0030.02310.15
5.1.50.0050.02710.08
5.1.40.0070.02510.15
5.1.30.0070.02510.24
5.1.20.0000.02510.31
5.1.10.0000.02610.17
5.1.00.0050.02610.23
5.0.50.0000.0149.47
5.0.40.0050.0239.32
5.0.30.0000.0199.24
5.0.20.0030.0129.24
5.0.10.0000.0129.17
5.0.00.0010.0259.19
4.4.90.0000.0129.11
4.4.80.0010.0169.11
4.4.70.0020.0109.11
4.4.60.0030.0109.11
4.4.50.0030.0089.11
4.4.40.0020.0149.11
4.4.30.0010.0159.11
4.4.20.0020.0109.11
4.4.10.0020.0109.11
4.4.00.0000.0159.11
4.3.110.0050.0179.11
4.3.100.0000.0139.11
4.3.90.0020.0169.11
4.3.80.0040.0109.11
4.3.70.0020.0099.11
4.3.60.0030.0189.11
4.3.50.0030.0189.11
4.3.40.0000.0169.11
4.3.30.0040.0079.11
4.3.20.0000.0109.11
4.3.10.0020.0089.11
4.3.00.0000.0119.11

preferences:
43.96 ms | 401 KiB | 5 Q