3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new StdClass; $foo->$bar = [ 'baz' => 'bang' ]; $bar = 'a'; echo $foo->$bar['baz'];

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.70.0080.00816.63
8.3.60.0040.01116.88
8.3.50.0120.00621.95
8.3.40.0000.01518.93
8.3.30.0150.00018.66
8.3.20.0040.00420.38
8.3.10.0000.00823.70
8.3.00.0050.00319.79
8.2.180.0070.01118.66
8.2.170.0060.01522.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00317.63
8.2.120.0040.00426.35
8.2.110.0050.00520.23
8.2.100.0080.00417.93
8.2.90.0080.00019.20
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0030.01217.55
8.2.50.0030.00718.07
8.2.40.0080.00022.10
8.2.30.0030.00320.57
8.2.20.0080.00017.80
8.2.10.0000.00717.99
8.2.00.0040.00418.11
8.1.280.0070.00725.92
8.1.270.0060.00320.21
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0050.00323.92
8.1.230.0040.00817.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.38
8.1.190.0040.00417.25
8.1.180.0070.00018.10
8.1.170.0050.00318.48
8.1.160.0070.00020.81
8.1.150.0040.00418.88
8.1.140.0030.00619.62
8.1.130.0030.00317.57
8.1.120.0040.00417.30
8.1.110.0000.00817.35
8.1.100.0000.00817.41
8.1.90.0050.00217.34
8.1.80.0070.00317.44
8.1.70.0000.00717.36
8.1.60.0050.00217.51
8.1.50.0040.00417.55
8.1.40.0040.00417.54
8.1.30.0040.00417.54
8.1.20.0040.00417.58
8.1.10.0070.00017.61
8.1.00.0030.00517.40
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.44
8.0.270.0000.00717.16
8.0.260.0000.00617.27
8.0.250.0000.00717.08
8.0.240.0070.00017.00
8.0.230.0030.00316.90
8.0.220.0030.00317.00
8.0.210.0000.00816.92
8.0.200.0000.00616.88
8.0.190.0000.00717.04
8.0.180.0040.00416.91
8.0.170.0070.00017.03
8.0.160.0030.00316.95
8.0.150.0030.00516.94
8.0.140.0030.00316.95
8.0.130.0030.00313.30
8.0.120.0000.00716.85
8.0.110.0000.00716.83
8.0.100.0050.00316.89
8.0.90.0040.00416.96
8.0.80.0160.00716.88
8.0.70.0000.00716.93
8.0.60.0040.00416.80
8.0.50.0040.00416.89
8.0.30.0100.00817.25
8.0.20.0100.00817.40
8.0.10.0040.00416.86
8.0.00.0100.00716.78
7.4.330.0030.00316.83
7.4.320.0000.00616.54
7.4.300.0060.00016.38
7.4.290.0030.00316.53
7.4.280.0040.00416.52
7.4.270.0000.00716.53
7.4.260.0030.00316.52
7.4.250.0050.00316.31
7.4.240.0030.00316.48
7.4.230.0030.00316.53
7.4.220.0070.01016.48
7.4.210.0040.00916.40
7.4.200.0000.00716.43
7.4.160.0110.00516.55
7.4.150.0140.00317.40
7.4.140.0090.01317.86
7.4.130.0130.00916.44
7.4.120.0120.00716.47
7.4.110.0090.00916.79
7.4.100.0100.01316.50
7.4.90.0110.00616.39
7.4.80.0140.00419.39
7.4.70.0040.01116.66
7.4.60.0100.01016.36
7.4.50.0110.00016.32
7.4.40.0080.01216.65
7.4.30.0000.02116.66
7.4.00.0070.00914.80
7.3.330.0000.00613.08
7.3.320.0030.00313.07
7.3.310.0030.00316.29
7.3.300.0030.00316.16
7.3.290.0050.00316.31
7.3.280.0090.00916.30
7.3.270.0090.00917.40
7.3.260.0030.01316.50
7.3.250.0070.00916.46
7.3.240.0100.00716.57
7.3.230.0170.00016.39
7.3.210.0170.00016.42
7.3.200.0030.01516.66
7.3.190.0100.00516.35
7.3.180.0110.00416.29
7.3.170.0110.00616.32
7.3.160.0060.01016.38
7.3.120.0060.00614.89
7.3.110.0070.01014.75
7.3.100.0130.00614.86
7.3.90.0070.00714.61
7.3.80.0050.00514.98
7.3.70.0070.00714.58
7.3.60.0140.00014.74
7.3.50.0040.00414.90
7.3.40.0040.01114.89
7.3.30.0090.00614.92
7.3.20.0060.00616.74
7.3.10.0040.00716.75
7.3.00.0080.00316.54
7.2.330.0070.01016.75
7.2.320.0060.01816.64
7.2.310.0130.00416.54
7.2.300.0130.00316.60
7.2.290.0080.01416.75
7.2.250.0090.00914.95
7.2.240.0100.00714.71
7.2.230.0060.00914.77
7.2.220.0090.00615.03
7.2.210.0030.01015.23
7.2.200.0070.00315.14
7.2.190.0110.00415.05
7.2.180.0120.00315.11
7.2.170.0040.01114.74
7.2.160.0070.00715.17
7.2.150.0060.00616.72
7.2.140.0060.00616.63
7.2.130.0140.00016.89
7.2.120.0070.00716.77
7.2.110.0140.00716.90
7.2.100.0090.00316.56
7.2.90.0140.00016.96
7.2.80.0140.00017.13
7.2.70.0090.00616.97
7.2.60.0070.00716.79
7.2.50.0030.01216.80
7.2.40.0100.00316.96
7.2.30.0040.00816.75
7.2.20.0120.00016.79
7.2.10.0000.00916.88
7.2.00.0050.00817.90
7.1.330.0070.01015.79
7.1.320.0070.00715.59
7.1.310.0110.00315.47
7.1.300.0030.01015.93
7.1.290.0070.00315.53
7.1.280.0030.01415.74
7.1.270.0060.00615.61
7.1.260.0060.00615.73
7.1.250.0100.00715.84
7.1.240.0070.01015.92
7.1.230.0030.00715.56
7.1.220.0060.00615.77
7.1.210.0060.00615.64
7.1.200.0080.00615.76
7.1.190.0030.00915.86
7.1.180.0070.00415.95
7.1.170.0000.00815.64
7.1.160.0000.01015.52
7.1.150.0080.00015.77
7.1.140.0030.01015.80
7.1.130.0030.00615.78
7.1.120.0070.00315.81
7.1.110.0070.00715.97
7.1.100.0050.00716.90
7.1.90.0090.00615.42
7.1.80.0090.00615.95
7.1.70.0070.00416.50
7.1.60.0060.00917.72
7.1.50.0060.00716.14
7.1.40.0060.00315.69
7.1.30.0090.00315.54
7.1.20.0100.00715.68
7.1.10.0070.00715.45
7.1.00.0050.04219.04
7.0.330.0140.00015.59
7.0.320.0000.01115.39
7.0.310.0040.00815.36
7.0.300.0090.00015.17
7.0.290.0070.00315.49
7.0.280.0080.00315.15
7.0.270.0060.00915.31
7.0.260.0090.00615.32
7.0.250.0090.00315.34
7.0.240.0070.00315.49
7.0.230.0040.00715.34
7.0.220.0030.01015.37
7.0.210.0060.00315.11
7.0.200.0090.00316.03
7.0.190.0070.00715.29
7.0.180.0050.00315.21
7.0.170.0030.00715.38
7.0.160.0040.00915.27
7.0.150.0000.01015.35
7.0.140.0070.01015.18
7.0.130.0060.00315.40
7.0.120.0100.00715.43
7.0.110.0090.00915.46
7.0.100.0100.00715.24
7.0.90.0140.00215.52
7.0.80.0120.00315.30
7.0.70.0030.00915.25
7.0.60.0050.04717.62
7.0.50.0050.04616.51
7.0.40.0050.04816.71
7.0.30.0160.02816.81
7.0.20.0130.04516.76
7.0.10.0090.04216.66
7.0.00.0080.02116.83
5.6.400.0100.00314.04
5.6.390.0030.01714.05
5.6.380.0000.01314.47
5.6.370.0000.01014.32
5.6.360.0030.01314.39
5.6.350.0040.01114.36
5.6.340.0030.00814.32
5.6.330.0070.00414.76
5.6.320.0070.00414.78
5.6.310.0030.00714.48
5.6.300.0030.00714.41
5.6.290.0030.01014.54
5.6.280.0020.02217.66
5.6.270.0110.00714.25
5.6.260.0080.00514.21
5.6.250.0110.00814.30
5.6.240.0160.00314.29
5.6.230.0070.00714.38
5.6.220.0030.01214.15
5.6.210.0120.03317.46
5.6.200.0000.03116.20
5.6.190.0020.02917.32
5.6.180.0160.02817.66
5.6.170.0190.03217.47
5.6.160.0030.02517.50
5.6.150.0100.02916.31
5.6.140.0070.04016.36
5.6.130.0030.04716.27
5.6.120.0020.02817.57
5.6.110.0100.04317.84
5.6.100.0120.03717.63
5.6.90.0100.03717.64
5.6.80.0040.04617.34
5.6.70.0030.01014.04
5.6.60.0100.00314.46
5.6.50.0100.00314.65
5.6.40.0040.00414.05
5.6.30.0060.00614.14
5.6.20.0130.00014.37
5.6.10.0030.00714.56
5.6.00.0070.00714.19
5.5.380.0110.00714.39
5.5.370.0030.01014.23
5.5.360.0090.00314.27
5.5.350.0070.04717.38
5.5.340.0100.03616.00
5.5.330.0020.02717.28
5.5.320.0260.02617.35
5.5.310.0140.04417.25
5.5.300.0100.04216.11
5.5.290.0100.02016.13
5.5.280.0050.04717.33
5.5.270.0050.04217.32
5.5.260.0070.02417.42
5.5.250.0130.04017.52
5.5.240.1130.01817.34
5.5.230.0060.00613.89
5.5.220.0030.01214.36
5.5.210.0060.00613.97
5.5.200.0000.01114.29
5.5.190.0090.00614.17
5.5.180.0080.00314.27
5.5.170.0090.00314.07
5.5.160.0080.00414.05
5.5.150.0040.00814.10
5.5.140.0040.01114.02
5.5.130.0030.01013.84
5.5.120.0000.01014.29
5.5.110.0030.00714.25
5.5.100.0040.01113.86
5.5.90.0040.01114.12
5.5.80.0040.01114.14
5.5.70.0130.00314.14
5.5.60.0030.00714.01
5.5.50.0080.00314.20
5.5.40.0000.01114.09
5.5.30.0080.00414.18
5.5.20.0090.00314.25
5.5.10.0030.01014.05
5.5.00.0100.00014.27

preferences:
61.28 ms | 401 KiB | 5 Q