3v4l.org

run code in 300+ PHP versions simultaneously
<?php $class = new StdClass; $thing = new StdClass; $class->jericho = " truc"; $class->sayHello = function(){ echo "hello";}; $jerichoSayHello = $class->sayHello; $name = "jericho"; $nameClass = "class"; $sayHello = "sayHello"; echo ${${$nameClass}->$name.ucfirst($sayHello)}($class->$name);

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.0170.00316.63
8.3.50.0070.01418.02
8.3.40.0110.00418.97
8.3.30.0120.00318.92
8.3.20.0000.00820.16
8.3.10.0040.00423.66
8.3.00.0040.00419.51
8.2.180.0140.00718.18
8.2.170.0080.01222.96
8.2.160.0140.00022.17
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0090.00317.63
8.2.110.0100.00022.25
8.2.100.0080.00317.93
8.2.90.0000.00819.17
8.2.80.0030.00517.97
8.2.70.0050.00317.63
8.2.60.0000.00818.03
8.2.50.0000.00818.07
8.2.40.0000.00819.28
8.2.30.0050.00320.57
8.2.20.0020.00517.62
8.2.10.0000.00718.11
8.2.00.0050.00218.18
8.1.280.0060.01225.92
8.1.270.0040.00423.80
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00622.53
8.1.230.0090.00317.64
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0030.00517.10
8.1.180.0030.00518.10
8.1.170.0070.00019.03
8.1.160.0070.00022.02
8.1.150.0020.00518.80
8.1.140.0090.00019.49
8.1.130.0030.00317.77
8.1.120.0000.00817.53
8.1.110.0040.00417.36
8.1.100.0040.00417.37
8.1.90.0070.00017.48
8.1.80.0080.00017.45
8.1.70.0030.00317.47
8.1.60.0000.00917.60
8.1.50.0030.00517.57
8.1.40.0110.00017.50
8.1.30.0030.00617.62
8.1.20.0030.00617.70
8.1.10.0000.00817.55
8.1.00.0020.00517.58
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.45
8.0.270.0070.00017.20
8.0.260.0000.00617.22
8.0.250.0040.00417.01
8.0.240.0060.00316.89
8.0.230.0050.00216.99
8.0.220.0000.00717.00
8.0.210.0000.00717.02
8.0.200.0000.00716.97
8.0.190.0040.00417.08
8.0.180.0000.00816.88
8.0.170.0000.00817.02
8.0.160.0070.00017.01
8.0.150.0040.00416.93
8.0.140.0050.00216.91
8.0.130.0060.00013.45
8.0.120.0000.00816.84
8.0.110.0000.00816.88
8.0.100.0070.00016.81
8.0.90.0040.00416.83
8.0.80.0050.01017.00
8.0.70.0000.00816.99
8.0.60.0050.00216.80
8.0.50.0000.00717.06
8.0.30.0100.00917.33
8.0.20.0060.01417.40
8.0.10.0050.00216.97
8.0.00.0100.00916.82
7.4.330.0000.00515.08
7.4.320.0030.00316.61
7.4.300.0060.00016.51
7.4.290.0000.00716.61
7.4.280.0050.00216.50
7.4.270.0030.00316.48
7.4.260.0000.00716.49
7.4.250.0000.00716.42
7.4.240.0020.00516.49
7.4.230.0070.00016.63
7.4.220.0150.00616.70
7.4.210.0040.01816.61
7.4.200.0000.00716.63
7.4.160.0100.00516.50
7.4.150.0090.01217.40
7.4.140.0100.00817.86
7.4.130.0070.02016.57
7.4.120.0090.00816.50
7.4.110.0150.00316.59
7.4.100.0140.00916.65
7.4.90.0090.00916.41
7.4.80.0070.01019.39
7.4.70.0130.00316.55
7.4.60.0130.00316.43
7.4.50.0050.00316.28
7.4.40.0060.01116.43
7.4.30.0110.00616.52
7.4.00.0080.01014.97
7.3.330.0000.00513.44
7.3.320.0050.00013.43
7.3.310.0070.00016.30
7.3.300.0000.00716.23
7.3.290.0060.01016.33
7.3.280.0050.01116.36
7.3.270.0120.00617.40
7.3.260.0030.01316.67
7.3.240.0100.01116.50
7.3.230.0100.00716.56
7.3.210.0060.01016.39
7.3.200.0140.00716.38
7.3.190.0140.00316.42
7.3.180.0070.01116.37
7.3.170.0110.00616.49
7.3.160.0100.00716.70
7.3.120.0110.00614.84
7.3.110.0100.01014.83
7.3.100.0060.00715.04
7.3.90.0060.00714.97
7.3.80.0050.00814.80
7.3.70.0040.00814.56
7.3.60.0070.00914.89
7.3.50.0050.01114.93
7.3.40.0060.00514.73
7.3.30.0020.00714.84
7.3.20.0050.01116.69
7.3.10.0060.00716.68
7.3.00.0070.00416.64
7.2.330.0030.01516.48
7.2.320.0140.00416.39
7.2.310.0070.01316.42
7.2.300.0130.01316.70
7.2.290.0070.01616.45
7.2.250.0050.01314.93
7.2.240.0090.01015.09
7.2.230.0100.00514.98
7.2.220.0060.00814.85
7.2.210.0090.00815.01
7.2.200.0050.00614.76
7.2.190.0070.00714.94
7.2.180.0040.00915.06
7.2.170.0020.01014.88
7.2.60.0100.00316.79
7.2.00.0060.00619.54
7.1.330.0080.00715.82
7.1.320.0080.00815.90
7.1.310.0060.00615.62
7.1.300.0040.00515.69
7.1.290.0050.00715.83
7.1.280.0020.00615.76
7.1.270.0050.00715.90
7.1.260.0030.01215.75
7.1.200.0060.00815.88
7.1.100.0040.00818.00
7.1.70.0040.00417.22
7.1.60.0160.00619.43
7.1.50.0080.00417.14
7.1.00.0030.07722.51
7.0.200.0000.01014.80
7.0.60.0170.07320.03
7.0.50.0000.05717.86
7.0.40.0000.04720.13
7.0.30.0130.04720.24
7.0.20.0200.05320.25
7.0.10.0070.07320.25
7.0.00.0100.04320.10
5.6.210.0230.06320.49
5.6.200.0130.08018.12
5.6.190.0100.04020.68
5.6.180.0500.07020.48
5.6.170.0230.07320.57
5.6.160.0070.05020.71
5.6.150.0070.03718.20
5.6.140.0030.08318.19
5.6.130.0070.08018.16
5.6.120.0200.07321.14
5.6.110.0100.08020.98
5.6.100.0200.06721.13
5.6.90.0100.08021.08
5.6.80.0100.07720.51
5.5.350.0300.08020.29
5.5.340.0070.05317.94
5.5.330.0030.06020.41
5.5.320.0270.08020.30
5.5.310.0130.04720.32
5.5.300.0070.07717.98
5.5.290.0100.03717.98
5.5.280.0170.07320.98
5.5.270.0100.04020.67
5.5.260.0000.09020.66
5.5.250.0130.05020.56
5.5.240.0130.03720.26
5.4.450.0630.06019.54
5.4.440.0700.07019.50
5.4.430.0470.06019.59
5.4.420.0300.07319.50
5.4.410.0100.07719.17
5.4.400.0130.05319.31
5.4.390.0500.07019.07
5.4.380.0400.05718.99
5.4.370.0130.06719.07
5.4.360.0430.05718.83
5.4.350.0670.04719.23
5.4.340.0700.05018.99
5.4.320.0700.06319.27
5.4.310.0100.05319.27
5.4.300.0100.07319.16
5.4.290.0570.07019.17
5.4.280.0570.07718.99
5.4.270.0630.06019.06
5.4.260.0500.06019.02
5.4.250.0530.05319.30
5.4.240.0670.06018.80
5.4.230.0470.05018.87
5.4.220.0070.06718.98
5.4.210.0370.06319.00
5.4.200.0770.05319.27
5.4.190.0130.05718.80
5.4.180.0170.04718.98
5.4.170.0230.05719.23
5.4.160.0370.05718.77
5.4.150.0270.05018.99
5.4.140.0270.06316.34
5.4.130.0200.06016.41
5.4.120.0270.06016.28
5.4.110.0230.06316.47
5.4.100.0230.05316.47
5.4.90.0370.05316.30
5.4.80.0300.05016.56
5.4.70.0100.07016.63
5.4.60.0370.04716.55
5.4.50.0370.05016.22
5.4.40.0230.06316.25
5.4.30.0200.04316.57
5.4.20.0200.05716.55
5.4.10.0370.05316.23
5.4.00.0300.06315.88

preferences:
53.58 ms | 400 KiB | 5 Q