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.40.0130.00618.97
8.3.30.0130.00318.73
8.3.20.0040.00420.24
8.3.10.0080.00023.71
8.3.00.0000.00823.62
8.2.170.0070.00722.96
8.2.160.0030.01020.39
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0000.01119.10
8.2.120.0000.00826.35
8.2.110.0030.00622.11
8.2.100.0070.00717.84
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0030.00518.03
8.2.50.0040.00418.07
8.2.40.0050.00322.33
8.2.30.0030.00320.66
8.2.20.0000.00717.81
8.2.10.0000.00718.06
8.2.00.0000.01117.99
8.1.270.0000.01920.29
8.1.260.0000.00828.09
8.1.250.0070.01128.09
8.1.240.0000.01020.52
8.1.230.0090.00317.45
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0000.01317.25
8.1.190.0050.00317.23
8.1.180.0030.00518.10
8.1.170.0040.00418.59
8.1.160.0050.00320.64
8.1.150.0000.01018.90
8.1.140.0050.00319.48
8.1.130.0030.00317.74
8.1.120.0050.00617.48
8.1.110.0000.00717.38
8.1.100.0000.00717.50
8.1.90.0000.00717.42
8.1.80.0070.00017.36
8.1.70.0000.00717.38
8.1.60.0030.00617.56
8.1.50.0000.00917.55
8.1.40.0040.00417.53
8.1.30.0040.00417.60
8.1.20.0000.00817.58
8.1.10.0040.00417.59
8.1.00.0000.00717.41
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.51
8.0.270.0040.00417.26
8.0.260.0030.00317.27
8.0.250.0030.00316.90
8.0.240.0000.00617.03
8.0.230.0050.00217.02
8.0.220.0000.00716.99
8.0.210.0080.00016.93
8.0.200.0030.00317.05
8.0.190.0060.00316.89
8.0.180.0030.00316.88
8.0.170.0040.00416.89
8.0.160.0050.00316.98
8.0.150.0040.00416.92
8.0.140.0040.00416.91
8.0.130.0000.00613.40
8.0.120.0000.00716.86
8.0.110.0040.00416.86
8.0.100.0040.00417.07
8.0.90.0050.00216.96
8.0.80.0040.01116.93
8.0.70.0020.00516.97
8.0.60.0040.00416.96
8.0.50.0040.00416.81
8.0.30.0100.00617.11
8.0.20.0070.01117.40
8.0.10.0070.00017.08
8.0.00.0090.00916.79
7.4.330.0030.00316.73
7.4.320.0000.00616.52
7.4.300.0060.00016.54
7.4.290.0030.00316.36
7.4.280.0000.00716.52
7.4.270.0000.00716.58
7.4.260.0030.00316.54
7.4.250.0070.00016.41
7.4.240.0040.00316.56
7.4.230.0070.00016.45
7.4.220.0100.00716.57
7.4.210.0070.00716.40
7.4.200.0030.00316.54
7.4.160.0060.00916.52
7.4.150.0120.00617.40
7.4.140.0090.01117.86
7.4.130.0090.00816.46
7.4.120.0100.00816.54
7.4.110.0140.00316.39
7.4.100.0200.00316.62
7.4.90.0070.01416.58
7.4.80.0130.00919.39
7.4.70.0120.00516.61
7.4.60.0100.01316.56
7.4.50.0000.01416.55
7.4.40.0180.00016.42
7.4.30.0110.00616.59
7.4.00.0000.01414.77
7.3.330.0020.00213.23
7.3.320.0050.00013.44
7.3.310.0070.00016.36
7.3.300.0000.00716.23
7.3.290.0100.00516.36
7.3.280.0090.00716.35
7.3.270.0120.00617.40
7.3.260.0130.00616.51
7.3.250.0120.00816.38
7.3.240.0160.00716.38
7.3.230.0090.00916.39
7.3.210.0140.00716.43
7.3.200.0080.00816.66
7.3.190.0040.01116.35
7.3.180.0060.00916.59
7.3.170.0040.01316.44
7.3.160.0080.00816.44
7.3.120.0040.01114.58
7.3.110.0130.00314.60
7.3.100.0000.01514.81
7.3.90.0070.01114.53
7.3.80.0060.00915.13
7.3.70.0060.00914.68
7.3.60.0110.00414.97
7.3.50.0030.00914.73
7.3.40.0060.00914.84
7.3.30.0050.00514.90
7.3.20.0060.00616.39
7.3.10.0020.01316.68
7.3.00.0070.00716.49
7.2.330.0090.00916.32
7.2.320.0060.01416.83
7.2.310.0120.00616.82
7.2.300.0110.00716.74
7.2.290.0060.01016.69
7.2.250.0140.00715.27
7.2.240.0090.00915.05
7.2.230.0060.00615.30
7.2.220.0030.01515.16
7.2.210.0060.00914.98
7.2.200.0110.00315.20
7.2.190.0030.00614.80
7.2.180.0040.01115.13
7.2.170.0090.00615.08
7.2.130.0080.00616.79
7.2.120.0040.01116.92
7.2.110.0060.00716.80
7.2.100.0070.00616.98
7.2.90.0030.00816.83
7.2.80.0020.00916.83
7.2.70.0030.00916.95
7.2.60.0100.00416.89
7.2.50.0050.01016.74
7.2.40.0050.01216.69
7.2.30.0070.00716.72
7.2.20.0030.00916.86
7.2.10.0060.00617.05
7.2.00.0060.00717.90
7.1.330.0080.00815.74
7.1.320.0000.00915.66
7.1.310.0070.01015.83
7.1.300.0060.00915.45
7.1.290.0060.00615.81
7.1.280.0090.00015.99
7.1.270.0000.01115.59
7.1.260.0150.00015.99
7.1.250.0020.00915.79
7.1.200.0090.00315.83
7.1.100.0070.00718.12
7.1.70.0050.00516.97
7.1.60.0090.01619.52
7.1.50.0040.01816.76
7.1.00.0000.08022.46
7.0.200.0050.00216.59
7.0.60.0170.05320.00
7.0.50.0000.04317.91
7.0.40.0170.07319.96
7.0.30.0230.04720.08
7.0.20.0230.03720.12
7.0.10.0130.07720.21
7.0.00.0030.04720.09
5.6.210.0070.08020.56
5.6.200.0200.04718.28
5.6.190.0100.08720.46
5.6.180.0200.05720.60
5.6.170.0170.05320.54
5.6.160.0100.08320.54
5.6.150.0000.04318.30
5.6.140.0030.03718.18
5.6.130.0070.08018.18
5.6.120.0030.04021.13
5.6.110.0070.08320.89
5.6.100.0100.05020.98
5.6.90.0230.07020.88
5.6.80.0070.05020.40
5.5.350.0330.07320.52
5.5.340.0070.04718.10
5.5.330.0170.06320.27
5.5.320.0400.06720.51
5.5.310.0300.07320.27
5.5.300.0030.07717.98
5.5.290.0070.06017.91
5.5.280.0070.07720.76
5.5.270.0030.05020.79
5.5.260.0100.08020.64
5.5.250.0070.08020.68
5.5.240.0270.07720.18

preferences:
36.88 ms | 400 KiB | 5 Q