3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $foo = 'foo'; protected $bar = 'two'; private $baz = 'three'; } $b = (array) new Foo(); var_dump($b["foo"]); var_dump($b["\0*\0bar"]); var_dump($b["\0Foo\0baz"]);

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.00416.75
8.3.50.0090.00722.05
8.3.40.0060.00818.72
8.3.30.0000.01419.07
8.3.20.0070.00020.21
8.3.10.0000.00923.54
8.3.00.0090.00019.31
8.2.180.0090.01316.50
8.2.170.0110.00422.96
8.2.160.0030.01220.38
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00418.80
8.2.110.0070.01120.52
8.2.100.0000.01017.59
8.2.90.0040.00419.17
8.2.80.0000.00917.97
8.2.70.0040.00417.63
8.2.60.0000.00918.03
8.2.50.0030.00518.22
8.2.40.0040.00420.59
8.2.30.0050.00219.25
8.2.20.0070.00017.56
8.2.10.0000.00717.98
8.2.00.0060.00317.55
8.1.280.0120.00325.92
8.1.270.0040.00423.70
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0070.00323.78
8.1.230.0080.00320.98
8.1.220.0000.00917.74
8.1.210.0090.00018.77
8.1.200.0040.00417.35
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0000.00818.51
8.1.160.0090.00018.82
8.1.150.0000.00819.99
8.1.140.0000.00817.45
8.1.130.0030.00317.82
8.1.120.0000.00717.43
8.1.110.0000.00717.32
8.1.100.0030.00317.28
8.1.90.0050.00217.44
8.1.80.0030.00317.48
8.1.70.0000.00817.42
8.1.60.0060.00317.49
8.1.50.0000.00717.48
8.1.40.0030.00517.47
8.1.30.0030.00517.61
8.1.20.0080.00017.66
8.1.10.0050.00217.43
8.1.00.0000.00817.45
8.0.300.0000.00818.77
8.0.290.0000.00916.63
8.0.280.0070.00018.40
8.0.270.0000.00717.26
8.0.260.0080.00017.27
8.0.250.0000.00716.96
8.0.240.0070.00016.81
8.0.230.0030.00316.95
8.0.220.0000.00716.78
8.0.210.0070.00016.85
8.0.200.0040.00416.86
8.0.190.0000.00816.80
8.0.180.0070.00016.81
8.0.170.0000.00716.84
8.0.160.0070.00016.92
8.0.150.0000.00716.65
8.0.140.0040.00416.67
8.0.130.0000.00613.24
8.0.120.0000.00816.68
8.0.110.0040.00416.83
8.0.100.0020.00516.74
8.0.90.0030.00316.73
8.0.80.0110.00416.79
8.0.70.0070.00016.92
8.0.60.0050.00316.93
8.0.50.0040.00416.71
8.0.30.0090.01216.90
8.0.20.0150.00417.40
8.0.10.0070.00016.84
8.0.00.0090.00916.84
7.4.330.0000.00515.02
7.4.320.0060.00016.57
7.4.300.0030.00316.64
7.4.290.0070.00016.51
7.4.280.0050.00316.50
7.4.270.0030.00316.43
7.4.260.0040.00416.45
7.4.250.0040.00416.57
7.4.240.0040.00316.53
7.4.230.0020.00516.63
7.4.220.0160.01016.57
7.4.210.0090.00616.63
7.4.200.0030.00316.70
7.4.160.0130.00316.38
7.4.150.0140.00417.40
7.4.140.0050.01217.86
7.4.130.0130.00516.53
7.4.120.0070.01216.53
7.4.110.0070.01116.46
7.4.100.0120.00516.50
7.4.90.0080.01016.41
7.4.80.0120.00716.47
7.4.70.0080.01216.40
7.4.60.0090.00716.49
7.4.50.0100.00716.44
7.4.40.0110.01016.44
7.4.30.0150.00516.47
7.4.20.0100.00716.37
7.4.10.0100.00816.42
7.4.00.0070.01116.14
7.3.330.0050.00013.29
7.3.320.0000.00513.11
7.3.310.0030.00316.16
7.3.300.0070.00016.24
7.3.290.0080.01016.18
7.3.280.0100.00716.22
7.3.270.0170.00017.40
7.3.260.0090.00916.37
7.3.250.0120.00616.32
7.3.240.0070.01116.55
7.3.230.0120.00516.30
7.3.220.0050.01216.34
7.3.210.0050.01116.31
7.3.200.0090.00917.43
7.3.190.0090.00916.42
7.3.180.0110.00616.33
7.3.170.0090.00916.40
7.3.160.0100.01316.46
7.3.150.0080.00816.45
7.3.140.0070.01016.37
7.3.130.0100.00716.39
7.3.120.0090.00816.07
7.3.110.0080.00916.14
7.3.100.0100.00616.10
7.3.90.0100.00815.68
7.3.80.0090.00815.70
7.3.70.0070.01115.57
7.3.60.0090.00815.59
7.3.50.0080.00815.43
7.3.40.0080.00815.51
7.3.30.0090.00915.32
7.3.20.0590.00815.62
7.3.10.0690.00815.63
7.3.00.0500.01015.62
7.2.340.0090.01216.73
7.2.330.0090.00816.59
7.2.320.0130.00516.55
7.2.310.0080.01016.46
7.2.300.0090.00916.36
7.2.290.0060.01416.49
7.2.280.0070.00916.49
7.2.270.0100.00916.41
7.2.260.0090.00816.53
7.2.250.0090.00916.49
7.2.240.0080.00916.26
7.2.230.0090.00916.18
7.2.220.0100.00915.89
7.2.210.0080.00915.96
7.2.200.0090.00915.77
7.2.190.0100.00715.82
7.2.180.0070.01015.71
7.2.170.0080.00915.69
7.2.160.0100.00715.49
7.2.150.0600.00815.90
7.2.140.0600.00915.87
7.2.130.0550.01015.89
7.2.120.0720.01015.94
7.2.110.0550.00915.90
7.2.100.0340.00815.91
7.2.90.0460.00915.86
7.2.80.0400.00815.89
7.2.70.0210.01015.91
7.2.60.0380.00815.98
7.2.50.0400.00715.86
7.2.40.0400.00815.97
7.2.30.0430.00915.95
7.2.20.0420.00915.86
7.2.10.0380.00715.86
7.2.00.0410.00816.08
7.1.330.0180.00815.85
7.1.320.0180.00615.50
7.1.310.0160.01015.48
7.1.300.0180.00815.32
7.1.290.0150.00915.26
7.1.280.0160.00915.17
7.1.270.0610.00914.88
7.1.260.0610.00814.89
7.1.250.0670.00714.78
7.1.240.0690.00914.73
7.1.230.0530.00714.70
7.1.220.0480.01014.72
7.1.210.0600.00914.73
7.1.200.0490.00914.84
7.1.190.0460.00614.73
7.1.180.0500.00914.71
7.1.170.0380.00914.76
7.1.160.0420.00914.72
7.1.150.0530.01014.66
7.1.140.0520.00914.75
7.1.130.0520.00714.65
7.1.120.0460.00714.74
7.1.110.0460.00714.83
7.1.100.0400.00814.97
7.1.90.0400.00915.11
7.1.80.0360.01015.06
7.1.70.0300.00815.18
7.1.60.0310.00816.33
7.1.50.0300.00916.31
7.1.40.0290.00716.29
7.1.30.0300.00916.29
7.1.20.0300.00816.33
7.1.10.0240.01015.13
7.1.00.0260.00815.01
7.0.330.0560.01014.30
7.0.320.0560.00814.32
7.0.310.0490.00914.35
7.0.300.0470.00914.34
7.0.290.0450.00914.32
7.0.280.0510.00714.39
7.0.270.0450.01014.35
7.0.260.0380.01014.35
7.0.250.0390.00814.35
7.0.240.0400.00814.41
7.0.230.0370.00814.75
7.0.220.0380.00814.73
7.0.210.0460.00714.62
7.0.200.0300.00814.77
7.0.190.0320.00714.80
7.0.180.0310.00714.80
7.0.170.0310.00714.82
7.0.160.0270.00914.80
7.0.150.0560.00814.78
7.0.140.0450.00814.66
7.0.130.0240.00914.73
7.0.120.0310.00714.72
7.0.110.0270.00814.65
7.0.100.0270.00614.67
7.0.90.0250.00714.68
7.0.80.0280.00914.63
7.0.70.0260.00814.65
7.0.60.0280.00814.64
7.0.50.0270.01014.67
7.0.40.0280.01114.56
7.0.30.0240.01014.59
7.0.20.0300.00814.42
7.0.10.0240.00814.56
7.0.00.0300.00814.66
5.6.400.0140.00914.93
5.6.390.0130.01215.00
5.6.380.0170.00914.85
5.6.370.0170.00814.90
5.6.360.0180.00914.97
5.6.350.0170.00914.97
5.6.340.0130.01314.90
5.6.330.0130.01214.92
5.6.320.0160.00914.88
5.6.310.0140.00914.95
5.6.300.0160.01315.68
5.6.290.0150.01415.76
5.6.280.0140.01515.74
5.6.270.0160.01315.74
5.6.260.0150.01515.80
5.6.250.0150.01515.76
5.6.240.0150.01615.76
5.6.230.0160.01615.71
5.6.220.0140.01515.67
5.6.210.0140.01815.69
5.6.200.0170.01515.68
5.6.190.0150.01615.64
5.6.180.0150.01415.63
5.6.170.0130.01615.69
5.6.160.0170.01715.69
5.6.150.0180.01415.67
5.6.140.0190.01415.75
5.6.130.0140.01615.70
5.6.120.0160.01515.75
5.6.110.0140.01615.66
5.6.100.0160.01815.69
5.6.90.0160.01615.72
5.6.80.0140.01615.54
5.6.70.0160.01615.54
5.6.60.0160.01615.53
5.6.50.0140.01515.57
5.6.40.0160.01315.53
5.6.30.0160.01515.53
5.6.20.0140.01615.57
5.6.10.0200.01415.56
5.6.00.0170.01515.56
5.5.380.0150.01615.02
5.5.370.0160.01314.98
5.5.360.0140.02015.02
5.5.350.0150.01515.08
5.5.340.0160.01515.05
5.5.330.0150.01414.98
5.5.320.0130.01615.15
5.5.310.0140.01515.08
5.5.300.0150.01715.05
5.5.290.0120.01715.00
5.5.280.0160.01415.04
5.5.270.0160.01515.09
5.5.260.0160.01515.12
5.5.250.0130.01815.04
5.5.240.0140.01414.88
5.5.230.0140.01314.87
5.5.220.0120.01514.94
5.5.210.0160.01114.88
5.5.200.0140.01414.91
5.5.190.0140.01514.91
5.5.180.0160.01414.93
5.5.170.0150.01014.48
5.5.160.0140.01414.93
5.5.150.0140.01415.00
5.5.140.0130.01814.90
5.5.130.0130.01514.97
5.5.120.0120.01614.90
5.5.110.0140.01514.89
5.5.100.0150.01314.83
5.5.90.0120.01414.90
5.5.80.0140.01514.91
5.5.70.0160.01414.80
5.5.60.0160.01614.84
5.5.50.0140.01514.91
5.5.40.0150.01414.89
5.5.30.0130.01614.93
5.5.20.0150.01314.83
5.5.10.0130.01614.84
5.5.00.0150.01314.84
5.4.450.0110.01412.92
5.4.440.0120.01212.87
5.4.430.0120.01312.89
5.4.420.0100.01512.88
5.4.410.0120.01012.84
5.4.400.0090.01312.79
5.4.390.0110.01312.79
5.4.380.0110.01412.79
5.4.370.0100.01212.76
5.4.360.0090.01412.80
5.4.350.0100.01212.80
5.4.340.0120.01212.79
5.4.330.0110.00811.81
5.4.320.0110.01112.80
5.4.310.0120.01212.78
5.4.300.0110.01312.81
5.4.290.0120.01012.77
5.4.280.0120.01112.72
5.4.270.0130.01112.76
5.4.260.0100.01212.75
5.4.250.0120.01212.82
5.4.240.0120.01312.85
5.4.230.0130.01112.72
5.4.220.0130.01412.73
5.4.210.0120.01212.80
5.4.200.0120.01312.73
5.4.190.0110.01112.81
5.4.180.0110.01312.73
5.4.170.0110.01412.78
5.4.160.0110.01112.80
5.4.150.0120.01212.76
5.4.140.0110.01212.48
5.4.130.0100.01012.43
5.4.120.0120.01112.55
5.4.110.0110.01212.47
5.4.100.0100.01212.46
5.4.90.0110.01112.49
5.4.80.0100.01212.50
5.4.70.0110.01112.51
5.4.60.0120.01212.47
5.4.50.0110.01112.48
5.4.40.0100.01312.49
5.4.30.0090.01412.50
5.4.20.0140.01012.47
5.4.10.0090.01212.52
5.4.00.0090.01212.41
5.3.290.0130.01012.32
5.3.280.0100.01512.15
5.3.270.0090.01312.18
5.3.260.0110.01212.21
5.3.250.0110.01212.26
5.3.240.0100.01212.14
5.3.230.0110.01212.13
5.3.220.0100.01212.21
5.3.210.0120.01112.19
5.3.200.0100.01112.23
5.3.190.0120.01012.26
5.3.180.0090.01212.28
5.3.170.0120.01112.33
5.3.160.0100.01212.36
5.3.150.0100.01212.32
5.3.140.0100.01412.33
5.3.130.0110.01212.24
5.3.120.0130.01212.25
5.3.110.0100.01412.25
5.3.100.0100.01212.19
5.3.90.0090.01312.21
5.3.80.0110.01212.09
5.3.70.0080.01312.13
5.3.60.0080.01412.21
5.3.50.0110.01012.16
5.3.40.0100.01112.19
5.3.30.0100.01212.21
5.3.20.0110.01112.14
5.3.10.0100.01212.06
5.3.00.0100.01212.00

preferences:
33.07 ms | 401 KiB | 5 Q