3v4l.org

run code in 300+ PHP versions simultaneously
<?php $location = new stdClass; $location->city = "Chicago"; $variableName = 'location->city'; //${$variableName} = 'Chicago'; $str = "\$location->city Dentist"; var_dump($str);

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.0090.00916.59
8.3.50.0140.00316.54
8.3.40.0210.00018.80
8.3.30.0100.01018.76
8.3.20.0040.00418.69
8.3.10.0050.00318.51
8.3.00.0040.00419.18
8.2.180.0110.00716.38
8.2.170.0030.01022.96
8.2.160.0080.00818.53
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0090.00026.16
8.2.120.0040.00419.39
8.2.110.0050.00521.11
8.2.100.0060.00617.47
8.2.90.0030.00519.04
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0040.00417.93
8.2.50.0000.00817.92
8.2.40.0060.00319.11
8.2.30.0080.00017.62
8.2.20.0000.00817.57
8.2.10.0040.00417.64
8.2.00.0000.00717.67
8.1.280.0140.00025.92
8.1.270.0080.00023.99
8.1.260.0030.01326.35
8.1.250.0100.00328.09
8.1.240.0060.00322.55
8.1.230.0070.00417.76
8.1.220.0030.00617.77
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0060.00317.23
8.1.180.0030.00518.10
8.1.170.0040.00417.62
8.1.160.0070.00019.00
8.1.150.0000.00718.56
8.1.140.0060.00317.34
8.1.130.0000.00719.04
8.1.120.0040.00417.32
8.1.110.0040.00417.40
8.1.100.0030.00317.31
8.1.90.0030.00317.39
8.1.80.0000.00717.30
8.1.70.0030.00317.27
8.1.60.0080.00017.34
8.1.50.0040.00417.45
8.1.40.0070.00017.49
8.1.30.0060.00317.54
8.1.20.0000.00817.57
8.1.10.0000.00717.55
8.1.00.0030.00617.47
8.0.300.0080.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.52
8.0.270.0030.00317.23
8.0.260.0060.00316.66
8.0.250.0050.00316.80
8.0.240.0030.00316.76
8.0.230.0000.00716.89
8.0.220.0030.00416.84
8.0.210.0040.00416.83
8.0.200.0030.00316.84
8.0.190.0030.00616.88
8.0.180.0000.00716.82
8.0.170.0000.00716.83
8.0.160.0000.01016.78
8.0.150.0000.00816.67
8.0.140.0060.00316.65
8.0.130.0000.00513.18
8.0.120.0060.00316.77
8.0.110.0000.00716.82
8.0.100.0000.00716.83
8.0.90.0050.00216.69
8.0.80.0100.00616.70
8.0.70.0000.00716.69
8.0.60.0060.00216.70
8.0.50.0020.00516.82
8.0.30.0110.00916.86
8.0.20.0130.00516.95
8.0.10.0030.00516.83
8.0.00.0130.00816.66
7.4.330.0000.00612.82
7.4.320.0000.00716.34
7.4.300.0000.00616.44
7.4.290.0000.00616.45
7.4.280.0000.00716.50
7.4.270.0080.00016.52
7.4.260.0030.00313.21
7.4.250.0090.00016.32
7.4.240.0090.00016.39
7.4.230.0040.00416.55
7.4.220.0100.01716.28
7.4.210.0130.00616.47
7.4.200.0030.00316.27
7.4.190.0040.00416.59
7.4.160.0060.01016.53
7.4.150.0100.00716.39
7.4.140.0160.00717.86
7.4.130.0090.00916.30
7.4.120.0070.01116.27
7.4.110.0070.01016.41
7.4.100.0140.00316.57
7.4.90.0070.01716.36
7.4.80.0100.00719.39
7.4.70.0030.01516.45
7.4.60.0090.01516.27
7.4.50.0000.00516.21
7.4.40.0080.00516.19
7.4.30.0040.01116.31
7.4.00.0030.00914.91
7.3.330.0040.00413.04
7.3.320.0030.00313.03
7.3.310.0060.00016.01
7.3.300.0030.00316.16
7.3.290.0130.00516.19
7.3.280.0100.01316.11
7.3.270.0090.00916.55
7.3.260.0080.00816.46
7.3.240.0090.00616.49
7.3.230.0130.00516.45
7.3.210.0130.00716.15
7.3.200.0040.01116.49
7.3.190.0060.01016.25
7.3.180.0140.00316.59
7.3.170.0170.00616.44
7.3.160.0060.01116.29
7.3.120.0000.01414.68
7.2.330.0140.00516.67
7.2.320.0060.01216.52
7.2.310.0140.00416.59
7.2.300.0140.00416.75
7.2.290.0030.01416.37
7.2.00.0060.00919.29
7.1.100.0030.01017.97
7.1.70.0040.00817.04
7.1.60.0080.00419.21
7.1.50.0100.01316.95
7.1.00.0000.04022.52
7.0.200.0070.00016.57
7.0.140.0100.06721.95
7.0.120.0030.07022.07
7.0.60.0130.07720.10
7.0.50.0100.05717.86
7.0.40.0100.09020.20
7.0.30.0470.07020.20
7.0.20.0230.04320.17
7.0.10.0230.05020.01
7.0.00.0100.07320.01
5.6.280.0000.07320.81
5.6.210.0200.05320.51
5.6.200.0030.04718.16
5.6.190.0130.07720.63
5.6.180.0130.04720.61
5.6.170.0270.04320.41
5.6.160.0000.04720.47
5.6.150.0130.07318.22
5.6.140.0070.05318.12
5.6.130.0070.05318.16
5.6.120.0100.06021.01
5.6.110.0130.05020.93
5.6.100.0100.08020.95
5.6.90.0070.08021.12
5.6.80.0130.07320.49
5.6.70.3970.03320.41
5.5.350.0130.08020.43
5.5.340.0100.06017.99
5.5.330.0070.05020.43
5.5.320.0300.03720.17
5.5.310.0170.03720.34
5.5.300.0030.08017.88
5.5.290.0070.05317.98
5.5.280.0070.08020.68
5.5.270.0130.07720.76
5.5.260.0000.07320.79
5.5.250.0130.07720.55
5.5.240.0070.06320.25
5.4.450.0230.05319.57
5.4.440.3700.04319.25
5.4.430.0070.06019.33
5.4.420.0100.05319.33
5.4.410.0100.05319.52
5.4.400.0070.05719.37
5.4.390.0030.06018.98
5.4.380.0200.06018.49
5.4.370.0130.05018.66
5.4.360.0170.05318.71
5.4.350.0050.03611.98
5.4.340.0090.03311.97
5.4.320.0090.04412.46
5.4.310.0080.04312.45
5.4.300.0060.04512.45
5.4.290.0080.04512.45
5.4.280.0070.04212.35
5.4.270.0060.04512.35
5.4.260.0070.04712.35
5.4.250.0070.04412.35
5.4.240.0070.04012.35
5.4.230.0070.04212.34
5.4.220.0070.04612.34
5.4.210.0070.03912.34
5.4.200.0060.04412.34
5.4.190.0080.03912.34
5.4.180.0050.04412.34
5.4.170.0090.04112.35
5.4.160.0070.04012.34
5.4.150.0090.03712.34
5.4.140.0050.04312.02
5.4.130.0070.04212.01
5.4.120.0070.03911.97
5.4.110.0070.03911.97
5.4.100.0090.03911.97
5.4.90.0060.04211.97
5.4.80.0080.05011.97
5.4.70.0070.05011.96
5.4.60.0100.04611.96
5.4.50.0060.04511.96
5.4.40.0070.04611.95
5.4.30.0120.04111.95
5.4.20.0080.04211.95
5.4.10.0080.04411.95
5.4.00.0060.04511.44
5.3.290.0070.05012.80
5.3.280.0080.04412.71
5.3.270.0080.04512.72
5.3.260.0060.04712.72
5.3.250.0080.04312.72
5.3.240.0070.04512.72
5.3.230.0080.04512.71
5.3.220.0080.04312.68
5.3.210.0080.04412.68
5.3.200.0070.04912.68
5.3.190.0050.04512.68
5.3.180.0060.04612.67
5.3.170.0070.04612.67
5.3.160.0080.04412.67
5.3.150.0090.04912.67
5.3.140.0090.04812.66
5.3.130.0090.05412.66
5.3.120.0090.05312.66
5.3.110.0090.04912.66
5.3.100.0070.04312.12
5.3.90.0080.04612.08
5.3.80.0060.04612.08
5.3.70.0090.04012.08
5.3.60.0090.04212.07
5.3.50.0080.04412.00
5.3.40.0070.04412.00

preferences:
36.56 ms | 401 KiB | 5 Q