3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $callable; public function __construct() { $this->callable = 'get_class'; } public function yesItDoes() { $this->callable->call($this); } } (new Foo)->yesItDoes();

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.0150.00416.88
8.3.50.0110.01116.24
8.3.40.0070.01019.00
8.3.30.0070.00718.92
8.3.20.0080.00020.09
8.3.10.0080.00023.57
8.3.00.0070.00023.56
8.2.180.0080.00816.63
8.2.170.0100.00722.96
8.2.160.0120.00620.50
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0060.00319.58
8.2.120.0000.00726.35
8.2.110.0060.00322.19
8.2.100.0060.00617.93
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0070.00420.26
8.2.30.0040.00419.43
8.2.20.0020.00517.74
8.2.10.0050.00517.89
8.2.00.0070.00017.93
8.1.280.0140.00325.92
8.1.270.0040.00423.79
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0090.00023.98
8.1.230.0080.00319.16
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0000.01117.22
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0090.00018.46
8.1.160.0040.00420.70
8.1.150.0070.00018.69
8.1.140.0000.00819.56
8.1.130.0000.00717.51
8.1.120.0040.00317.46
8.1.110.0050.00217.42
8.1.100.0080.00017.36
8.1.90.0000.00817.23
8.1.80.0040.00417.34
8.1.70.0030.00317.38
8.1.60.0030.00517.61
8.1.50.0040.00417.52
8.1.40.0040.00417.48
8.1.30.0070.00317.52
8.1.20.0030.00517.57
8.1.10.0000.00817.50
8.1.00.0070.00017.45
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0000.00717.09
8.0.260.0000.00817.20
8.0.250.0030.00316.94
8.0.240.0030.00316.99
8.0.230.0000.00717.01
8.0.220.0060.00516.90
8.0.210.0030.00316.89
8.0.200.0050.00216.98
8.0.190.0050.00316.92
8.0.180.0100.00016.87
8.0.170.0040.00416.96
8.0.160.0030.00316.84
8.0.150.0080.00016.71
8.0.140.0000.00716.82
8.0.130.0050.00013.24
8.0.120.0040.00416.81
8.0.110.0060.00316.91
8.0.100.0000.00716.93
8.0.90.0000.00716.93
8.0.80.0070.00716.89
8.0.70.0040.00416.76
8.0.60.0040.00416.80
8.0.50.0000.00716.77
8.0.30.0130.00917.14
8.0.20.0080.01017.40
8.0.10.0040.00416.81
8.0.00.0140.00616.79
7.4.330.0050.00016.78
7.4.320.0030.00316.42
7.4.300.0030.00316.35
7.4.290.0000.00616.49
7.4.280.0060.00316.53
7.4.270.0020.00516.58
7.4.260.0000.00716.50
7.4.250.0040.00416.42
7.4.240.0020.00516.51
7.4.230.0030.00316.52
7.4.220.0070.01516.53
7.4.210.0050.01216.57
7.4.200.0000.00716.33
7.4.160.0170.00016.32
7.4.150.0100.00917.40
7.4.140.0110.00717.86
7.4.130.0100.01316.66
7.4.120.0080.01216.49
7.4.110.0090.00916.54
7.4.100.0030.01516.36
7.4.90.0070.01016.60
7.4.80.0060.01519.39
7.4.70.0130.00316.41
7.4.60.0090.00616.36
7.4.50.0000.01216.57
7.4.40.0160.00016.40
7.4.30.0190.00616.65
7.4.10.0030.01415.04
7.4.00.0020.01215.12
7.3.330.0070.00013.23
7.3.320.0000.00613.17
7.3.310.0000.00716.41
7.3.300.0030.00316.40
7.3.290.0020.00516.35
7.3.280.0060.01216.34
7.3.270.0090.00917.40
7.3.260.0130.00316.40
7.3.240.0070.01016.39
7.3.230.0090.00916.39
7.3.210.0030.01316.27
7.3.200.0100.00719.39
7.3.190.0060.01016.29
7.3.180.0130.00316.43
7.3.170.0070.01016.45
7.3.160.0000.01416.38
7.3.130.0100.01014.79
7.3.120.0030.01414.68
7.3.110.0030.01414.97
7.3.100.0100.00714.83
7.3.90.0100.00014.85
7.3.80.0060.00614.78
7.3.70.0000.01014.89
7.3.60.0100.00714.56
7.3.50.0030.01014.90
7.3.40.0060.01014.91
7.3.30.0000.01214.68
7.3.20.0000.01316.58
7.3.10.0140.00016.77
7.3.00.0070.01016.74
7.2.330.0070.01316.65
7.2.320.0130.01016.67
7.2.310.0100.01316.68
7.2.300.0120.00416.54
7.2.290.0090.00916.66
7.2.260.0080.00815.00
7.2.250.0080.01114.73
7.2.240.0030.01315.16
7.2.230.0060.01214.59
7.2.220.0040.01514.60
7.2.210.0000.01514.88
7.2.200.0040.01215.07
7.2.190.0060.01215.02
7.2.180.0030.01314.86
7.2.170.0100.00715.13
7.2.160.0060.01014.72
7.2.150.0070.00316.74
7.2.140.0090.00316.70
7.2.130.0040.01516.99
7.2.120.0030.01216.63
7.2.110.0070.01116.64
7.2.100.0030.01416.57
7.2.90.0120.00316.98
7.2.80.0030.01617.00
7.2.70.0040.01217.04
7.2.60.0060.00716.76
7.2.50.0030.00916.80
7.2.40.0030.01316.71
7.2.30.0080.00816.72
7.2.20.0100.00316.61
7.2.10.0070.00716.71
7.2.00.0050.00918.04
7.1.330.0070.00715.74
7.1.320.0090.00615.79
7.1.310.0030.01015.54
7.1.300.0050.00815.86
7.1.290.0000.01615.71
7.1.280.0060.00615.49
7.1.270.0060.00615.71
7.1.260.0030.01015.71
7.1.250.0060.00615.84
7.1.240.0090.00615.82
7.1.230.0000.01715.82
7.1.220.0000.01215.46
7.1.210.0050.00815.84
7.1.200.0050.00915.66
7.1.190.0040.01115.82
7.1.180.0030.01015.39
7.1.170.0070.00715.70
7.1.160.0000.01415.56
7.1.150.0040.00715.67
7.1.140.0030.01015.83
7.1.130.0030.01015.74
7.1.120.0100.00315.55
7.1.110.0030.01115.29
7.1.100.0060.00916.77
7.1.90.0070.01015.72
7.1.80.0040.01115.50
7.1.70.0000.01116.39
7.1.60.0070.01017.39
7.1.50.0070.00916.38
7.1.40.0030.01015.28
7.1.30.0000.01315.71
7.1.20.0030.00615.79
7.1.10.0030.01315.49
7.1.00.0040.04319.03
7.0.330.0100.00315.28
7.0.320.0000.01315.35
7.0.310.0030.01015.23
7.0.300.0050.00815.15
7.0.290.0040.00415.20
7.0.280.0060.01015.34
7.0.270.0120.00315.33
7.0.260.0000.01215.18
7.0.250.0070.00715.29
7.0.240.0060.00615.28
7.0.230.0040.01115.19
7.0.220.0110.00315.04
7.0.210.0050.00515.20
7.0.200.0040.00516.09
7.0.190.0030.00915.34
7.0.180.0120.00315.48
7.0.170.0090.00615.36
7.0.160.0090.00315.09
7.0.150.0030.00615.09
7.0.140.0070.01015.43
7.0.130.0030.01115.33
7.0.120.0060.00615.24
7.0.110.0060.00715.29
7.0.100.0080.00315.13
7.0.90.0070.00715.40
7.0.80.0110.00015.11
7.0.70.0040.00415.32
7.0.60.0130.02617.65
7.0.50.0070.02516.66
7.0.40.0060.04016.81
7.0.30.0190.04116.83
7.0.20.0130.02716.87
7.0.10.0100.02916.87
7.0.00.0130.03816.83
5.6.400.0030.01413.99
5.6.390.0130.00014.48
5.6.380.0100.00314.37
5.6.370.0140.00414.45
5.6.360.0040.00814.58
5.6.350.0000.01114.47
5.6.340.0070.00714.23
5.6.330.0110.00714.37
5.6.320.0000.01314.29
5.6.310.0040.01214.54
5.6.300.0040.01414.26
5.6.290.0060.00914.17
5.6.280.0030.01917.73
5.6.270.0080.00014.14
5.6.260.0040.00914.19
5.6.250.0000.00914.44
5.6.240.0070.01114.33
5.6.230.0000.01514.46
5.6.220.0000.01413.97
5.6.210.0100.03517.43
5.6.200.0020.02816.20
5.6.190.0050.03317.41
5.6.180.0150.02517.33
5.6.170.0080.02517.27
5.6.160.0000.03217.42
5.6.150.0030.04316.27
5.6.140.0040.02416.21
5.6.130.0110.02716.39
5.6.120.0080.03517.67
5.6.110.0120.02217.70
5.6.100.0130.03317.69
5.6.90.0050.03517.51
5.6.80.0050.02217.31
5.6.70.0030.00714.22
5.6.60.0030.01314.33
5.6.50.0090.00614.25
5.6.40.0110.00014.14
5.6.30.0060.01014.01
5.6.20.0100.00314.41
5.6.10.0060.00914.07
5.6.00.0040.01414.10
5.5.380.0000.01414.36
5.5.370.0060.00614.32
5.5.360.0000.01114.28
5.5.350.0090.04417.50
5.5.340.0050.04616.11
5.5.330.0080.02317.47
5.5.320.0070.02817.39
5.5.310.0130.02517.39
5.5.300.0080.04016.15
5.5.290.0050.04316.16
5.5.280.0040.02517.61
5.5.270.0090.02617.35
5.5.260.0050.05017.49
5.5.250.0110.03317.33
5.5.240.0070.02317.20
5.5.230.0030.01414.30
5.5.220.0040.01113.90
5.5.210.0090.00614.22
5.5.200.0040.00914.04
5.5.190.0080.00814.31
5.5.180.0030.01114.02
5.5.170.0060.00914.26
5.5.160.0100.00313.91
5.5.150.0060.00614.04
5.5.140.0070.01013.76
5.5.130.0070.01014.07
5.5.120.0060.01014.00
5.5.110.0050.00814.01
5.5.100.0090.00614.11
5.5.90.0030.01014.16
5.5.80.0060.00614.14
5.5.70.0030.00914.23
5.5.60.0000.01214.30
5.5.50.0040.01113.91
5.5.40.0040.00714.26
5.5.30.0040.00714.22
5.5.20.0110.00414.00
5.5.10.0040.00714.19
5.5.00.0030.01414.30

preferences:
55.83 ms | 400 KiB | 5 Q