3v4l.org

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

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.0110.01116.63
8.3.50.0090.01218.27
8.3.40.0150.00018.71
8.3.30.0110.00418.84
8.3.20.0080.00020.20
8.3.10.0080.00023.56
8.3.00.0000.00819.38
8.2.180.0140.00718.38
8.2.170.0000.02222.96
8.2.160.0100.01022.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00720.69
8.2.110.0050.00521.00
8.2.100.0090.00317.80
8.2.90.0000.00819.22
8.2.80.0080.00017.97
8.2.70.0030.00517.49
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0000.00819.46
8.2.30.0030.00320.62
8.2.20.0040.00417.66
8.2.10.0040.00418.05
8.2.00.0040.00418.11
8.1.270.0090.00023.69
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00419.19
8.1.230.0080.00417.54
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0090.00017.35
8.1.190.0000.00917.23
8.1.180.0050.00318.10
8.1.170.0000.00718.93
8.1.160.0070.00021.97
8.1.150.0000.00718.89
8.1.140.0050.00319.57
8.1.130.0050.00317.68
8.1.120.0040.00417.49
8.1.110.0040.00317.35
8.1.100.0000.00717.48
8.1.90.0060.00317.37
8.1.80.0000.00717.45
8.1.70.0000.00717.36
8.1.60.0050.00317.52
8.1.50.0000.00817.57
8.1.40.0060.00617.31
8.1.30.0050.00417.66
8.1.20.0050.00217.56
8.1.10.0000.00717.60
8.1.00.0000.00717.45
8.0.300.0000.00718.77
8.0.290.0020.00516.63
8.0.280.0000.00718.46
8.0.270.0000.00717.26
8.0.260.0000.00617.28
8.0.250.0040.00416.98
8.0.240.0040.00416.88
8.0.230.0030.00316.84
8.0.220.0070.00016.89
8.0.210.0000.00816.97
8.0.200.0030.00316.87
8.0.190.0050.00316.85
8.0.180.0060.00316.94
8.0.170.0000.00816.91
8.0.160.0070.00016.84
8.0.150.0030.00316.75
8.0.140.0000.00716.90
8.0.130.0060.00013.29
8.0.120.0090.00016.97
8.0.110.0070.00016.91
8.0.100.0050.00216.81
8.0.90.0040.00416.95
8.0.80.0000.01616.79
8.0.70.0040.00416.77
8.0.60.0040.00416.75
8.0.50.0050.00316.84
8.0.30.0140.00517.06
8.0.20.0130.00617.41
8.0.10.0070.00016.91
8.0.00.0110.00816.74
7.4.330.0030.00315.08
7.4.320.0030.00316.50
7.4.300.0030.00316.51
7.4.290.0040.00416.66
7.4.280.0030.00616.59
7.4.270.0070.00016.52
7.4.260.0070.00016.57
7.4.250.0050.00216.57
7.4.240.0030.00516.62
7.4.230.0000.00716.43
7.4.220.0120.00916.55
7.4.210.0060.01016.52
7.4.200.0000.00716.46
7.4.160.0050.01116.51
7.4.150.0130.01017.40
7.4.140.0100.00817.86
7.4.130.0080.01016.31
7.4.120.0100.00716.51
7.4.110.0000.02016.45
7.4.100.0150.00516.53
7.4.90.0100.00716.39
7.4.80.0110.00719.39
7.4.70.0030.01516.47
7.4.60.0060.01016.45
7.4.50.0050.00316.26
7.4.40.0040.01816.49
7.4.30.0110.00716.45
7.4.00.0040.01114.94
7.3.330.0000.00513.14
7.3.320.0050.00013.08
7.3.310.0070.00016.21
7.3.300.0000.00716.18
7.3.290.0120.00416.27
7.3.280.0100.01116.23
7.3.270.0080.00917.40
7.3.260.0100.00716.31
7.3.250.0110.00916.45
7.3.240.0100.01016.58
7.3.230.0100.00716.60
7.3.210.0110.00516.66
7.3.200.0070.01016.30
7.3.190.0150.00416.55
7.3.180.0120.00916.59
7.3.170.0120.00616.41
7.3.160.0160.00016.53
7.2.330.0030.01416.82
7.2.320.0230.00316.86
7.2.310.0060.01116.38
7.2.300.0150.00716.82
7.2.290.0130.00316.83
7.2.120.0070.00316.73
7.2.110.0120.00316.48
7.2.100.0080.00316.64
7.2.90.0100.00316.67
7.2.80.0060.00316.71
7.2.70.0070.00316.69
7.2.60.0050.00816.95
7.2.50.0030.01016.94
7.2.40.0110.00017.07
7.2.30.0090.00617.16
7.2.20.0070.00716.88
7.2.10.0110.00016.78
7.2.00.0060.01018.21
7.1.240.0070.00715.89
7.1.230.0000.01115.84
7.1.220.0000.01115.55
7.1.210.0030.01015.74
7.1.200.0110.00815.66
7.1.190.0000.01115.62
7.1.180.0030.01015.59
7.1.170.0060.00315.73
7.1.160.0040.01115.68
7.1.150.0120.00015.89
7.1.140.0080.00515.96
7.1.130.0090.00315.53
7.1.120.0000.00915.87
7.1.110.0090.00315.95
7.1.100.0070.00616.89
7.1.90.0070.00715.64
7.1.80.0030.00915.64
7.1.70.0030.00816.06
7.1.60.0030.01217.51
7.1.50.0080.01016.34
7.1.40.0000.01415.82
7.1.30.0000.01115.80
7.1.20.0000.01015.71
7.1.10.0030.00815.79
7.1.00.0050.04018.86
7.0.320.0030.00715.28
7.0.310.0040.00715.37
7.0.300.0080.00415.41
7.0.290.0070.00715.59
7.0.280.0070.00415.18
7.0.270.0070.00715.41
7.0.260.0030.01015.41
7.0.250.0110.00015.21
7.0.240.0040.00815.64
7.0.230.0080.00315.23
7.0.220.0070.00715.23
7.0.210.0030.01015.24
7.0.200.0180.00615.11
7.0.190.0060.00615.48
7.0.180.0030.00715.57
7.0.170.0100.00315.27
7.0.160.0100.00315.21
7.0.150.0040.00815.60
7.0.140.0040.00815.55
7.0.130.0000.01115.30
7.0.120.0000.01215.55
7.0.110.0060.00615.26
7.0.100.0110.00015.52
7.0.90.0000.01115.39
7.0.80.0060.00315.59
7.0.70.0030.00715.34
7.0.60.0060.03817.67
7.0.50.0060.03116.71
7.0.40.0100.04516.94
7.0.30.0070.03016.73
7.0.20.0200.04116.75
7.0.10.0060.04516.85
7.0.00.0020.02516.83
5.6.380.0060.00614.38
5.6.370.0060.00914.56
5.6.360.0160.00014.16
5.6.350.0060.00314.51
5.6.340.0070.00714.29
5.6.330.0070.00714.14
5.6.320.0060.00314.33
5.6.310.0090.00314.55
5.6.300.0040.00814.48
5.6.290.0030.00914.56
5.6.280.0050.03217.68
5.6.270.0080.00414.69
5.6.260.0000.01414.49
5.6.250.0070.00714.64
5.6.240.0110.00414.33
5.6.230.0150.00014.25
5.6.220.0070.00014.36
5.6.210.0070.03217.63
5.6.200.0070.04216.20
5.6.190.0030.02717.46
5.6.180.0260.04317.56
5.6.170.0170.04017.36
5.6.160.0050.03817.42
5.6.150.0050.02616.29
5.6.140.0080.02516.26
5.6.130.0080.04016.34
5.6.120.0070.02917.73
5.6.110.0140.03317.83
5.6.100.0060.04617.66
5.6.90.0100.03817.72
5.6.80.0050.02217.42
5.6.70.0080.00314.27
5.6.60.0060.00314.14
5.6.50.0060.00614.41
5.6.40.0060.00614.18
5.6.30.0030.00614.02
5.6.20.0030.00914.13
5.6.10.0060.00614.30
5.6.00.0040.00414.28
5.5.380.0100.00011.58
5.5.370.0070.00311.58
5.5.360.0060.00611.58
5.5.350.0150.02516.05
5.5.340.0080.02314.76
5.5.330.0050.03215.99
5.5.320.0150.02815.93
5.5.310.0080.02816.05
5.5.300.0110.01914.83
5.5.290.0070.04314.80
5.5.280.0050.02816.27
5.5.270.0070.03016.24
5.5.260.0070.04716.27
5.5.250.0110.03016.18
5.5.240.0070.03815.82
5.5.230.0060.00311.58
5.5.220.0080.00311.58
5.5.210.0060.00211.58
5.5.200.0060.00611.58
5.5.190.0080.00311.58
5.5.180.0060.00311.58
5.5.170.0000.01314.44
5.5.160.0100.00311.58
5.5.150.0070.00711.58
5.5.140.0050.00511.58
5.5.130.0000.01011.58
5.5.120.0130.00011.58
5.5.110.0050.00511.58
5.5.100.0140.00011.58
5.5.90.0030.00711.58
5.5.80.0100.00311.58
5.5.70.0130.00011.58
5.5.60.0110.00411.58
5.5.50.0110.00311.58
5.5.40.0110.00411.58
5.5.30.0000.01111.58
5.5.20.0080.00411.58
5.5.10.0050.00511.58
5.5.00.0110.00411.58
5.4.450.0110.04015.41
5.4.440.0080.03715.50
5.4.430.0110.03115.57
5.4.420.0080.03515.60
5.4.410.0300.03715.49
5.4.400.0280.03015.44
5.4.390.0250.03615.38
5.4.380.0340.03215.18
5.4.370.0280.03115.40
5.4.360.0130.02515.37
5.4.350.0180.03115.35
5.4.340.0160.03015.29
5.4.330.0030.00611.58
5.4.320.0190.02915.18
5.4.310.0100.03715.24
5.4.300.0110.03215.39
5.4.290.0140.02715.40
5.4.280.0170.03115.44
5.4.270.0150.03015.36
5.4.260.0080.03215.18
5.4.250.0170.03515.33
5.4.240.0100.03115.18
5.4.230.0100.04015.38
5.4.220.0140.03815.33
5.4.210.0120.02815.33
5.4.200.0090.03315.33
5.4.190.0090.03415.26
5.4.180.0130.03015.26
5.4.170.0050.03915.18
5.4.160.0070.03715.39
5.4.150.0240.03815.38
5.4.140.0200.02514.09
5.4.130.0050.03413.95
5.4.120.0120.02914.00
5.4.110.0070.03114.05
5.4.100.0150.03114.12
5.4.90.0130.02514.02
5.4.80.0090.03314.05
5.4.70.0090.03314.09
5.4.60.0130.03214.09
5.4.50.0120.02414.03
5.4.40.0190.02713.99
5.4.30.0120.02713.99
5.4.20.0090.03014.08
5.4.10.0170.02714.04
5.4.00.0120.02713.68

preferences:
68.83 ms | 400 KiB | 5 Q