3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { function aMethod() { //echo "Helloddfdfd"; return $this; } function bMethod() { //echo "Hissss"; return $this; } function cMethod() { //echo "hi sudhir"; return $this; } } class YourClass { function yMethod() { } } (new MyClass())->aMethod()->bMethod()->cMethod()->yMethod();

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.00718.83
8.3.30.0070.00720.20
8.3.20.0080.00020.35
8.3.10.0130.00922.09
8.3.00.0040.00422.50
8.2.170.0070.00722.96
8.2.160.0140.00022.26
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0090.00019.70
8.2.110.0030.00622.26
8.2.100.0090.00319.32
8.2.90.0000.00719.17
8.2.80.0040.00419.34
8.2.70.0000.00817.50
8.2.60.0030.00517.92
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0040.00417.92
8.2.20.0050.00317.53
8.2.10.0080.00017.55
8.2.00.0070.00317.57
8.1.270.0000.00724.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00023.88
8.1.230.0040.00719.01
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0050.00517.25
8.1.190.0040.00417.28
8.1.180.0060.00319.01
8.1.170.0000.00818.62
8.1.160.0030.00622.13
8.1.150.0040.00418.43
8.1.140.0040.00417.36
8.1.130.0000.00717.66
8.1.120.0030.00317.30
8.1.110.0040.00417.36
8.1.100.0080.00017.32
8.1.90.0040.00417.21
8.1.80.0050.00217.34
8.1.70.0000.00717.30
8.1.60.0060.00317.42
8.1.50.0000.00717.44
8.1.40.0050.00317.33
8.1.30.0000.00717.45
8.1.20.0040.00417.57
8.1.10.0000.00717.53
8.1.00.0030.00617.43
8.0.300.0000.00818.77
8.0.290.0040.00416.93
8.0.280.0030.00318.30
8.0.270.0030.00317.06
8.0.260.0030.00316.67
8.0.250.0000.00616.96
8.0.240.0080.00016.95
8.0.230.0070.00016.84
8.0.220.0080.00016.78
8.0.210.0030.00316.81
8.0.200.0050.00316.81
8.0.190.0030.00616.98
8.0.180.0050.00216.80
8.0.170.0040.00416.78
8.0.160.0000.00716.88
8.0.150.0070.00016.73
8.0.140.0030.00316.77
8.0.130.0030.00313.23
8.0.120.0020.00516.82
8.0.110.0070.00016.90
8.0.100.0070.00016.95
8.0.90.0030.00516.88
8.0.80.0090.00616.91
8.0.70.0040.00416.84
8.0.60.0000.00716.82
8.0.50.0040.00416.68
8.0.30.0140.01016.95
8.0.20.0140.00517.40
8.0.10.0040.00417.01
8.0.00.0120.00816.67
7.4.330.0060.00015.00
7.4.320.0030.00316.48
7.4.300.0000.00616.43
7.4.290.0000.00716.43
7.4.280.0000.00716.52
7.4.270.0080.00016.37
7.4.260.0000.00813.18
7.4.250.0000.00816.54
7.4.240.0020.00516.39
7.4.230.0080.00016.27
7.4.220.0090.01616.46
7.4.210.0050.00816.45
7.4.200.0040.00416.27
7.4.190.0040.00416.39
7.4.160.0090.00916.69
7.4.150.0100.00717.40
7.4.140.0110.00717.86
7.4.130.0100.00716.47
7.4.120.0100.00816.44
7.4.110.0100.00716.40
7.4.100.0110.00616.42
7.4.90.0050.01816.61
7.4.80.0100.00719.39
7.4.70.0130.00816.44
7.4.60.0140.00316.40
7.4.50.0040.00416.27
7.4.40.0090.00622.77
7.4.30.0070.01416.45
7.4.00.0070.01014.89
7.3.330.0030.00313.13
7.3.320.0030.00313.22
7.3.310.0030.00316.20
7.3.300.0000.00716.30
7.3.290.0030.01016.32
7.3.280.0080.01016.36
7.3.270.0040.01317.40
7.3.260.0120.01016.32
7.3.250.0080.01116.41
7.3.240.0120.00416.29
7.3.230.0120.00616.39
7.3.210.0120.00616.56
7.3.200.0120.00819.39
7.3.190.0060.01016.55
7.3.180.0060.01016.46
7.3.170.0030.01316.28
7.3.160.0090.00616.50
7.3.120.0030.01014.77
7.3.00.0030.00916.77
7.2.330.0120.00616.61
7.2.320.0070.01016.67
7.2.310.0090.00916.54
7.2.300.0150.00716.38
7.2.290.0080.00816.45
7.2.130.0100.01016.76
7.2.120.0030.01016.79
7.2.110.0030.00916.61
7.2.100.0000.01216.75
7.2.90.0030.01016.79
7.2.80.0060.00316.89
7.2.70.0030.00916.61
7.2.60.0020.01216.88
7.2.50.0080.00416.74
7.2.40.0060.00616.75
7.2.30.0070.00416.81
7.2.20.0030.01016.79
7.2.10.0140.00316.55
7.2.00.0080.00818.08
7.1.250.0000.01415.73
7.1.240.0060.00615.63
7.1.230.0040.00415.79
7.1.220.0070.00315.80
7.1.210.0040.00415.64
7.1.200.0060.00815.74
7.1.190.0070.00415.64
7.1.180.0050.00515.69
7.1.170.0050.00315.54
7.1.160.0060.00615.61
7.1.150.0060.00615.62
7.1.140.0060.00615.78
7.1.130.0000.00915.62
7.1.120.0070.00315.53
7.1.110.0030.00715.81
7.1.100.0060.00616.91
7.1.90.0030.00515.84
7.1.80.0000.01315.66
7.1.70.0030.00716.41
7.1.60.0100.00917.58
7.1.50.0080.01116.28
7.1.40.0060.00615.53
7.1.30.0070.00615.74
7.1.20.0110.00415.53
7.1.10.0060.00615.50
7.1.00.0070.03319.11
7.0.330.0030.00915.46
7.0.320.0090.00615.32
7.0.310.0060.00615.34
7.0.300.0030.00915.24
7.0.290.0000.01514.96
7.0.280.0070.00615.39
7.0.270.0000.00915.00
7.0.260.0060.00314.93
7.0.250.0080.00815.20
7.0.240.0040.00815.36
7.0.230.0000.01415.28
7.0.220.0070.00015.31
7.0.210.0040.00415.02
7.0.200.0070.00715.94
7.0.190.0110.00015.16
7.0.180.0070.00415.17
7.0.170.0050.00215.34
7.0.160.0060.00315.16
7.0.150.0090.00315.16
7.0.140.0030.03718.59
7.0.130.0000.01115.12
7.0.120.0040.00815.51
7.0.110.0070.00315.36
7.0.100.0030.00914.98
7.0.90.0090.00315.11
7.0.80.0050.00315.24
7.0.70.0000.01215.38
7.0.60.0080.04517.71
7.0.50.0050.03416.48
7.0.40.0070.04716.68
7.0.30.0040.02916.88
7.0.20.0200.02516.72
7.0.10.0100.03116.77
7.0.00.0070.03716.76
5.6.380.0000.00913.97
5.6.370.0030.00714.30
5.6.360.0070.00414.18
5.6.350.0030.01014.34
5.6.340.0000.01014.37
5.6.330.0030.00914.04
5.6.320.0060.00614.29
5.6.310.0090.00314.18
5.6.300.0070.00414.23
5.6.290.0000.00814.24
5.6.280.0140.03317.61
5.6.270.0070.00714.19
5.6.260.0040.00414.39
5.6.250.0040.00814.32
5.6.240.0000.00914.13
5.6.230.0040.01114.29
5.6.220.0030.01013.86
5.6.210.0040.03017.44
5.6.200.0080.03816.30
5.6.190.0050.02717.31
5.6.180.0130.03517.04
5.6.170.0170.03217.28
5.6.160.0080.01817.39
5.6.150.0120.03016.04
5.6.140.0070.02416.14
5.6.130.0060.04516.12
5.6.120.0090.02217.47
5.6.110.0090.02017.54
5.6.100.0050.02517.79
5.6.90.0120.04217.59
5.6.80.0080.02217.21
5.6.70.0030.00614.13
5.6.60.0060.00713.78
5.6.50.0040.00414.04
5.6.40.0000.01013.91
5.6.30.0000.01014.18
5.6.20.0000.00714.08
5.6.10.0100.00314.05
5.6.00.0090.00314.22
5.5.380.0000.00911.18
5.5.370.0030.00711.23
5.5.360.0040.00711.18
5.5.350.0070.04215.81
5.5.340.0060.04014.61
5.5.330.0090.02415.68
5.5.320.0110.04015.77
5.5.310.0150.03215.78
5.5.300.0030.02314.57
5.5.290.0020.04514.55
5.5.280.0080.02015.97
5.5.270.0040.02815.99
5.5.260.0020.03515.97
5.5.250.0080.03315.90
5.5.240.0050.04115.61
5.5.230.0060.00311.18
5.5.220.0000.01011.18
5.5.210.0000.00511.18
5.5.200.0000.00711.18
5.5.190.0060.00311.18
5.5.180.0060.00311.18
5.5.170.0000.00811.18
5.5.160.0000.00511.18
5.5.150.0000.00611.18
5.5.140.0000.01011.18
5.5.130.0120.00011.18
5.5.120.0000.01411.18
5.5.110.0000.00711.18
5.5.100.0000.00711.18
5.5.90.0030.00611.18
5.5.80.0000.00711.18
5.5.70.0060.00611.20
5.5.60.0030.00711.18
5.5.50.0070.00311.19
5.5.40.0000.00911.18
5.5.30.0000.01011.18
5.5.20.0030.00511.18
5.5.10.0000.01011.18
5.5.00.0060.00611.18
5.4.450.0330.03115.44
5.4.440.0300.03215.38
5.4.430.0080.03015.28
5.4.420.0070.03215.25
5.4.410.0050.03214.93
5.4.400.0050.03014.98
5.4.390.0070.03314.95
5.4.380.0100.02714.87
5.4.370.0070.03514.89
5.4.360.0100.02914.84
5.4.350.0060.02711.60
5.4.340.0050.02511.60
5.4.330.0030.00611.18
5.4.320.0020.02411.84
5.4.310.0060.02511.84
5.4.300.0070.02311.84
5.4.290.0070.02111.84
5.4.280.0040.02211.79
5.4.270.0060.02111.79
5.4.260.0040.02211.79
5.4.250.0080.02211.79
5.4.240.0030.03014.95
5.4.230.0020.03214.98
5.4.220.0030.03015.02
5.4.210.0080.02614.96
5.4.200.0020.04015.13
5.4.190.0050.04515.07
5.4.180.0090.03315.06
5.4.170.0030.03414.96
5.4.160.0070.03115.00
5.4.150.0070.03015.09
5.4.140.0030.03313.83
5.4.130.0040.02713.81
5.4.120.0060.02613.85
5.4.110.0070.02713.82
5.4.100.0060.03213.87
5.4.90.0050.03713.93
5.4.80.0060.03813.84
5.4.70.0100.02513.93
5.4.60.0050.03513.84
5.4.50.0080.03113.81
5.4.40.0090.03513.77
5.4.30.0050.03013.78
5.4.20.0080.03513.90
5.4.10.0080.04113.86
5.4.00.0020.02913.58
5.3.290.0060.02311.99
5.3.280.0050.02712.92
5.3.270.0110.02712.89
5.3.260.0080.03912.97
5.3.250.0050.03812.94
5.3.240.0090.02512.97
5.3.230.0120.02812.96
5.3.220.0000.03112.87
5.3.210.0020.03512.83
5.3.200.0060.03612.82
5.3.190.0030.03712.87
5.3.180.0050.03112.98
5.3.170.0100.02912.92
5.3.160.0030.03812.91
5.3.150.0030.03212.94
5.3.140.0050.02812.88
5.3.130.0070.04012.90
5.3.120.0060.03312.95
5.3.110.0030.03012.86
5.3.100.0080.03312.66
5.3.90.0000.03612.67
5.3.80.0030.03012.64
5.3.70.0100.02312.60
5.3.60.0100.03112.63
5.3.50.0100.03312.62
5.3.40.0030.02812.61
5.3.30.0030.02812.54
5.3.20.0090.03212.39
5.3.10.0030.03012.40
5.3.00.0040.03112.45
5.2.170.0070.02711.20
5.2.160.0030.02411.08
5.2.150.0080.02511.20
5.2.140.0030.02311.21
5.2.130.0040.03211.13
5.2.120.0020.02411.18
5.2.110.0030.02811.19
5.2.100.0030.02711.18
5.2.90.0000.02511.06
5.2.80.0020.02211.22
5.2.70.0030.02111.22
5.2.60.0000.02611.15
5.2.50.0040.02211.13
5.2.40.0080.01611.00
5.2.30.0020.02511.16
5.2.20.0010.02111.10
5.2.10.0060.02311.05
5.2.00.0040.03111.00
5.1.60.0010.02510.67
5.1.50.0030.02310.69
5.1.40.0000.02410.61
5.1.30.0030.02810.73
5.1.20.0060.02210.76
5.1.10.0020.02210.62
5.1.00.0090.02010.66
5.0.50.0010.0169.86
5.0.40.0020.0239.84
5.0.30.0020.0299.71
5.0.20.0000.0199.73
5.0.10.0080.0179.68
5.0.00.0020.0259.70
4.4.90.0010.0118.51
4.4.80.0020.0128.51
4.4.70.0030.0168.47
4.4.60.0050.0108.49
4.4.50.0050.0128.58
4.4.40.0020.0198.84
4.4.30.0020.0178.84
4.4.20.0010.0138.84
4.4.10.0030.0178.84
4.4.00.0000.0268.84
4.3.110.0020.0158.84
4.3.100.0000.0158.84
4.3.90.0020.0108.84
4.3.80.0030.0168.84
4.3.70.0030.0108.84
4.3.60.0030.0118.84
4.3.50.0050.0118.84
4.3.40.0030.0178.84
4.3.30.0010.0138.84
4.3.20.0020.0128.84
4.3.10.0000.0158.84
4.3.00.0000.0148.88

preferences:
44.68 ms | 400 KiB | 5 Q