3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { public $name = 'Jackie'; public $job = 'PHP Developer'; } // Create instance $person = new Person(); $property = ['first' => 'name', 'second' => 'job']; echo "\nMy name is " . $person->{$property['first']} . "\n"; echo "\nMy job is " . $person->$property['second'] . "\n";

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.00716.88
8.3.50.0070.01122.01
8.3.40.0140.00318.83
8.3.30.0120.00318.84
8.3.20.0080.00020.13
8.3.10.0080.00023.47
8.3.00.0080.00021.01
8.2.180.0110.01116.50
8.2.170.0100.00619.05
8.2.160.0070.00722.96
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0030.00621.17
8.2.120.0040.00426.35
8.2.110.0040.00422.07
8.2.100.0080.00418.05
8.2.90.0000.00919.17
8.2.80.0040.00417.97
8.2.70.0070.00717.63
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0040.00422.15
8.2.30.0000.00720.63
8.2.20.0030.00617.80
8.2.10.0070.00018.00
8.2.00.0000.00718.22
8.1.280.0090.00625.92
8.1.270.0040.00420.21
8.1.260.0070.01128.09
8.1.250.0100.00328.09
8.1.240.0060.00323.92
8.1.230.0040.00819.61
8.1.220.0050.00317.74
8.1.210.0070.00418.77
8.1.200.0040.00417.36
8.1.190.0040.00417.12
8.1.180.0080.00018.10
8.1.170.0000.00818.46
8.1.160.0050.00320.81
8.1.150.0050.00218.89
8.1.140.0060.00319.49
8.1.130.0070.00017.66
8.1.120.0040.00417.51
8.1.110.0080.00017.45
8.1.100.0000.00717.47
8.1.90.0040.00417.35
8.1.80.0040.00417.45
8.1.70.0000.00817.52
8.1.60.0030.00517.54
8.1.50.0000.00917.58
8.1.40.0030.00617.54
8.1.30.0040.00417.56
8.1.20.0050.00317.65
8.1.10.0000.00717.58
8.1.00.0080.00017.50
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0030.00318.35
8.0.270.0050.00317.31
8.0.260.0060.00017.37
8.0.250.0030.00316.92
8.0.240.0000.00717.06
8.0.230.0000.00717.01
8.0.220.0070.00016.98
8.0.210.0030.00316.89
8.0.200.0000.00616.95
8.0.190.0080.00017.00
8.0.180.0000.00816.93
8.0.170.0040.00416.91
8.0.160.0040.00717.00
8.0.150.0030.00616.93
8.0.140.0000.00716.79
8.0.130.0060.00013.48
8.0.120.0000.00816.82
8.0.110.0040.00416.82
8.0.100.0040.00417.02
8.0.90.0030.00516.87
8.0.80.0030.01516.94
8.0.70.0000.00716.84
8.0.60.0040.00416.83
8.0.50.0040.00416.97
8.0.30.0130.00617.00
8.0.20.0140.00717.40
8.0.10.0000.00717.11
8.0.00.0100.01216.77
7.4.330.0050.00016.83
7.4.320.0000.00616.54
7.4.300.0030.00316.52
7.4.290.0070.00016.49
7.4.280.0000.00816.54
7.4.270.0000.00816.39
7.4.260.0070.00016.34
7.4.250.0040.00416.40
7.4.240.0010.00616.58
7.4.230.0070.00016.61
7.4.220.0090.01616.65
7.4.210.0080.01116.47
7.4.200.0040.00416.61
7.4.160.0060.01516.73
7.4.150.0140.00417.40
7.4.140.0140.00717.86
7.4.130.0040.01316.54
7.4.120.0090.01016.53
7.4.110.0100.01016.39
7.4.100.0080.01116.58
7.4.90.0090.00916.41
7.4.80.0120.01319.39
7.4.70.0120.00316.36
7.4.60.0070.01016.41
7.4.50.0060.00916.61
7.4.40.0140.00716.58
7.4.30.0060.01816.71
7.4.00.0090.00415.26
7.3.330.0030.00313.36
7.3.320.0060.00013.39
7.3.310.0000.00816.38
7.3.300.0000.00716.24
7.3.290.0000.00716.25
7.3.280.0100.01016.38
7.3.270.0070.01017.40
7.3.260.0080.00816.45
7.3.250.0090.00916.54
7.3.240.0100.01316.33
7.3.230.0120.00916.48
7.3.210.0070.01016.29
7.3.200.0110.01116.26
7.3.190.0100.00716.42
7.3.180.0030.01316.51
7.3.170.0120.01016.45
7.3.160.0060.01016.67
7.2.330.0070.01016.36
7.2.320.0070.01416.79
7.2.310.0030.01616.86
7.2.300.0070.01016.81
7.2.290.0070.01016.53
7.2.60.0000.01516.60
7.2.00.0100.00719.30
7.1.200.0080.00315.71
7.1.100.0030.01218.30
7.1.70.0000.00716.81
7.1.60.0090.01519.52
7.1.50.0110.01116.89
7.1.00.0100.06722.36
7.0.200.0000.01016.76
7.0.60.0100.08019.78
7.0.50.0030.05317.94
7.0.40.0030.04720.21
7.0.30.0430.07320.25
7.0.20.0130.04020.26
7.0.10.0070.05320.43
7.0.00.0100.07020.30
5.6.280.0030.03320.77
5.6.210.0100.08320.61
5.6.200.0070.06318.18
5.6.190.0170.06320.64
5.6.180.0230.04320.43
5.6.170.0330.06720.64
5.6.160.0070.04020.71
5.6.150.0030.05718.29
5.6.140.0170.05718.21
5.6.130.0070.05718.14
5.6.120.0170.06721.00
5.6.110.0100.08321.04
5.6.100.0100.07721.00
5.6.90.0000.09321.03
5.6.80.0070.06720.40
5.5.350.3030.03720.47
5.5.340.0100.07717.98
5.5.330.0170.06720.15
5.5.320.0500.04320.29
5.5.310.0230.08020.19
5.5.300.0000.04017.99
5.5.290.0030.08318.01
5.5.280.0070.08320.77
5.5.270.0000.04320.88
5.5.260.0070.04320.67
5.5.250.0070.07020.54
5.5.240.4470.04720.29

preferences:
69.76 ms | 401 KiB | 5 Q