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($t){ echo $t;}; $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.0190.00316.88
8.3.50.0100.01018.30
8.3.40.0060.00918.78
8.3.30.0110.00418.79
8.3.20.0000.00820.21
8.3.10.0080.00023.48
8.3.00.0050.00319.50
8.2.180.0160.00618.25
8.2.170.0030.01722.96
8.2.160.0140.00021.85
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00517.75
8.2.110.0070.00322.31
8.2.100.0110.00017.80
8.2.90.0080.00019.10
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0050.00319.28
8.2.30.0050.00220.59
8.2.20.0080.00017.66
8.2.10.0050.00318.00
8.2.00.0070.00018.12
8.1.280.0100.01025.92
8.1.270.0060.00324.00
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0090.00022.61
8.1.230.0000.01217.66
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0040.00418.96
8.1.160.0060.00322.07
8.1.150.0040.00418.86
8.1.140.0000.00819.63
8.1.130.0030.00517.76
8.1.120.0030.00517.39
8.1.110.0040.00317.48
8.1.100.0000.00717.47
8.1.90.0000.00717.48
8.1.80.0000.00917.36
8.1.70.0000.00717.47
8.1.60.0080.00017.59
8.1.50.0030.00617.43
8.1.40.0040.00817.54
8.1.30.0030.00517.62
8.1.20.0050.00217.70
8.1.10.0000.00817.58
8.1.00.0030.00617.56
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0040.00418.57
8.0.270.0030.00317.13
8.0.260.0030.00317.26
8.0.250.0080.00016.93
8.0.240.0050.00217.07
8.0.230.0080.00017.02
8.0.220.0080.00016.91
8.0.210.0000.00816.97
8.0.200.0030.00316.91
8.0.190.0040.00417.00
8.0.180.0040.00416.87
8.0.170.0030.00516.89
8.0.160.0030.00317.00
8.0.150.0070.00016.76
8.0.140.0050.00216.82
8.0.130.0060.00013.39
8.0.120.0040.00416.83
8.0.110.0040.00417.00
8.0.100.0000.00716.84
8.0.90.0000.00716.85
8.0.80.0030.01217.01
8.0.70.0040.00416.83
8.0.60.0000.00717.01
8.0.50.0070.00017.03
8.0.30.0170.00317.00
8.0.20.0130.00717.40
8.0.10.0040.00417.07
8.0.00.0110.00916.87
7.4.330.0030.00315.08
7.4.320.0080.00016.66
7.4.300.0000.00616.51
7.4.290.0000.00816.62
7.4.280.0000.00916.61
7.4.270.0080.00016.46
7.4.260.0000.00716.50
7.4.250.0050.00316.40
7.4.240.0020.00516.54
7.4.230.0000.00716.55
7.4.220.0000.01716.64
7.4.210.0090.00616.59
7.4.200.0030.00316.62
7.4.160.0080.00816.68
7.4.150.0150.00617.40
7.4.140.0080.01017.86
7.4.130.0150.00616.46
7.4.120.0100.00716.61
7.4.110.0090.00916.56
7.4.100.0110.00816.31
7.4.90.0030.01316.41
7.4.80.0160.00319.39
7.4.70.0130.00516.51
7.4.60.0060.01016.50
7.4.50.0000.00816.52
7.4.40.0090.00816.27
7.4.30.0070.01116.70
7.4.00.0030.01015.23
7.3.330.0050.00013.25
7.3.320.0000.00513.39
7.3.310.0000.00716.24
7.3.300.0000.00716.53
7.3.290.0040.01016.50
7.3.280.0080.01116.35
7.3.270.0110.00817.40
7.3.260.0140.00916.27
7.3.240.0130.00816.40
7.3.230.0100.00716.48
7.3.210.0140.00316.46
7.3.200.0150.00616.72
7.3.190.0100.01016.50
7.3.180.0060.00916.52
7.3.170.0190.00416.59
7.3.160.0060.01616.42
7.2.330.0060.01216.86
7.2.320.0070.01616.75
7.2.310.0130.00316.61
7.2.300.0120.00616.59
7.2.290.0090.00616.81
7.2.60.0100.00316.64
7.2.00.0040.00919.25
7.1.200.0090.00315.60
7.1.100.0060.00618.17
7.1.70.0070.00317.17
7.1.60.0070.01719.43
7.1.50.0160.00616.98
7.1.00.0030.07722.45
7.0.200.0220.00414.67
7.0.60.0230.06719.94
7.0.50.0070.08017.88
7.0.40.0030.09020.13
7.0.30.0300.07720.06
7.0.20.0470.05720.05
7.0.10.0030.04320.09
7.0.00.0030.04320.22
5.6.280.0100.05021.05
5.6.210.0070.08720.71
5.6.200.0100.07718.29
5.6.190.0070.05720.63
5.6.180.0470.07020.77
5.6.170.0200.07020.52
5.6.160.0000.09320.51
5.6.150.0100.03318.18
5.6.140.0100.06018.17
5.6.130.0100.08018.17
5.6.120.0100.07321.00
5.6.110.0130.08321.05
5.6.100.0100.08321.03
5.6.90.0200.06320.96
5.6.80.0030.03720.39
5.5.350.0370.06320.37
5.5.340.0030.08318.07
5.5.330.0130.07020.13
5.5.320.0230.08320.25
5.5.310.0300.04320.34
5.5.300.0070.07718.08
5.5.290.0100.08318.08
5.5.280.0170.07720.73
5.5.270.0130.08020.84
5.5.260.0100.07720.64
5.5.250.0200.07320.50
5.5.240.0070.08020.16
5.4.450.0130.06319.42
5.4.440.0100.06719.40
5.4.430.0030.06719.50
5.4.420.0130.06319.28
5.4.410.0170.06719.38
5.4.400.0170.07319.18
5.4.390.0100.08319.15
5.4.380.0270.06319.20
5.4.370.0100.07719.09
5.4.360.0670.06719.31
5.4.350.0730.06719.01
5.4.340.0800.06019.22
5.4.320.0530.06719.12
5.4.310.0200.06319.16
5.4.300.0200.06719.29
5.4.290.0270.05718.79
5.4.280.0600.05319.14
5.4.270.0630.05719.25
5.4.260.0130.05719.07
5.4.250.0170.05319.07
5.4.240.0700.05719.12
5.4.230.0670.07719.29
5.4.220.0170.07718.90
5.4.210.0170.05019.21
5.4.200.0470.07019.30
5.4.190.0270.05319.24
5.4.180.0300.04319.16
5.4.170.0070.07319.00
5.4.160.0270.05319.15
5.4.150.0130.06719.12
5.4.140.0230.05016.54
5.4.130.0170.06016.32
5.4.120.0100.05016.41
5.4.110.0170.06016.60
5.4.100.0230.04316.63
5.4.90.0270.04016.48
5.4.80.0130.05316.50
5.4.70.0230.04716.44
5.4.60.0270.05016.50
5.4.50.0170.05016.59
5.4.40.0170.05316.25
5.4.30.0170.04716.50
5.4.20.0200.06016.22
5.4.10.0100.05716.38
5.4.00.0330.04315.76

preferences:
47.61 ms | 400 KiB | 5 Q