3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $tab = 'tabValue'; } $foo = new Foo(); $arrayFoo = (array) $foo; var_dump($arrayFoo);

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.130.0060.00316.77
8.3.120.0030.00720.68
8.3.110.0040.00420.94
8.3.100.0060.00918.59
8.3.90.0040.00416.54
8.3.80.0110.00017.97
8.3.70.0090.00916.50
8.3.60.0090.00616.75
8.3.50.0130.00221.95
8.3.40.0110.00418.75
8.3.30.0070.00719.06
8.3.20.0000.00720.48
8.3.10.0050.00323.73
8.3.00.0040.00717.38
8.2.250.0080.00016.43
8.2.240.0030.00618.96
8.2.230.0000.00822.58
8.2.220.0160.00437.54
8.2.210.0000.01426.77
8.2.200.0060.00316.63
8.2.190.0170.00316.58
8.2.180.0090.00618.13
8.2.170.0110.00422.96
8.2.160.0100.00320.57
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0070.00317.50
8.2.110.0060.00322.25
8.2.100.0040.00717.63
8.2.90.0080.00020.55
8.2.80.0000.00819.53
8.2.70.0040.00417.38
8.2.60.0080.00017.63
8.2.50.0060.00317.80
8.2.40.0000.00817.93
8.2.30.0090.00317.80
8.2.20.0030.00618.47
8.2.10.0070.00417.74
8.2.00.0080.00417.62
8.1.300.0050.00316.54
8.1.290.0000.01118.88
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00323.79
8.1.230.0080.00419.14
8.1.220.0060.00317.74
8.1.210.0060.00320.53
8.1.200.0000.00917.13
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0000.00817.62
8.1.160.0090.00319.60
8.1.150.0080.00617.98
8.1.140.0070.00517.32
8.1.130.0080.00417.40
8.1.120.0100.00217.38
8.1.110.0060.00517.40
8.1.100.0080.00417.39
8.1.90.0050.00717.38
8.1.80.0080.00317.42
8.1.70.0090.00317.44
8.1.60.0100.00517.63
8.1.50.0070.00617.58
8.1.40.0060.00717.59
8.1.30.0100.00317.66
8.1.20.0090.00817.63
8.1.10.0090.00817.50
8.1.00.0110.00517.42
8.0.300.0000.00719.81
8.0.290.0030.00616.63
8.0.280.0060.00617.55
8.0.270.0040.00816.71
8.0.260.0060.00616.72
8.0.250.0060.00516.84
8.0.240.0050.00616.80
8.0.230.0050.00516.86
8.0.220.0050.00716.73
8.0.210.0070.00216.75
8.0.200.0020.00816.79
8.0.190.0060.00416.86
8.0.180.0080.00416.71
8.0.170.0090.00316.79
8.0.160.0080.00316.79
8.0.150.0100.00516.71
8.0.140.0090.00516.77
8.0.130.0120.00215.57
8.0.120.0130.00116.72
8.0.110.0080.00616.78
8.0.100.0060.00716.74
8.0.90.0100.00316.77
8.0.80.0110.00416.82
8.0.70.0110.00316.74
8.0.60.0110.00416.70
8.0.50.0100.00516.72
8.0.30.0090.00916.91
8.0.20.0140.00617.00
8.0.10.0110.00716.91
8.0.00.0120.00716.90
7.4.330.0050.00315.87
7.4.320.0060.00616.59
7.4.300.0080.00316.66
7.4.290.0080.00416.63
7.4.280.0080.00416.65
7.4.270.0130.00316.54
7.4.260.0130.00416.56
7.4.250.0080.00816.63
7.4.240.0110.00216.61
7.4.230.0130.00316.66
7.4.220.0100.00716.59
7.4.210.0090.00416.55
7.4.200.0080.00616.57
7.4.190.0080.00516.68
7.4.180.0100.00316.70
7.4.160.0120.00716.61
7.4.150.0120.00516.70
7.4.140.0090.00916.89
7.4.130.0140.00616.46
7.4.120.0130.00616.51
7.4.110.0110.00816.43
7.4.100.0100.00916.53
7.4.90.0120.00316.86
7.4.80.0070.01016.85
7.4.70.0120.00616.47
7.4.60.0130.00616.47
7.4.50.0130.00716.31
7.4.40.0110.00816.40
7.4.30.0130.00616.39
7.4.20.0130.00716.47
7.4.10.0110.00616.37
7.4.00.0100.00815.99
7.3.330.0090.00415.35
7.3.320.0110.00415.37
7.3.310.0110.00316.43
7.3.300.0100.00316.40
7.3.290.0090.00616.31
7.3.280.0090.00716.26
7.3.270.0120.00616.49
7.3.260.0090.00816.29
7.3.250.0120.00616.31
7.3.240.0140.00416.37
7.3.230.0130.00516.28
7.3.220.0120.00616.34
7.3.210.0130.00616.36
7.3.200.0100.00916.66
7.3.190.0140.00616.32
7.3.180.0150.00616.30
7.3.170.0130.00516.31
7.3.160.0090.01016.26
7.3.150.0120.00716.24
7.3.140.0110.00716.28
7.3.130.0120.00716.28
7.3.120.0080.01015.86
7.3.110.0110.00615.96
7.3.100.0090.00815.82
7.3.90.0090.00915.95
7.3.80.0110.00715.91
7.3.70.0090.00915.89
7.3.60.0090.00815.80
7.3.50.0110.00615.77
7.3.40.0100.00915.80
7.3.30.0110.00715.74
7.3.20.0120.00816.18
7.3.10.0130.00616.22
7.3.00.0100.00816.23
7.2.340.0120.00716.38
7.2.330.0150.00716.46
7.2.320.0120.00916.43
7.2.310.0120.00916.47
7.2.300.0130.00916.46
7.2.290.0150.00716.45
7.2.280.0130.00816.42
7.2.270.0120.00916.46
7.2.260.0150.00516.47
7.2.250.0120.00716.11
7.2.240.0130.00816.13
7.2.230.0110.00816.02
7.2.220.0130.00616.01
7.2.210.0080.01016.02
7.2.200.0130.00716.00
7.2.190.0120.00616.04
7.2.180.0120.00815.91
7.2.170.0140.00715.98
7.2.160.0140.00716.02
7.2.150.0140.00816.40
7.2.140.0130.00816.44
7.2.130.0140.00916.46
7.2.120.0160.00616.43
7.2.110.0110.00916.45
7.2.100.0140.00816.43
7.2.90.0160.00716.29
7.2.80.0180.00816.24
7.2.70.0120.00916.37
7.2.60.0110.00916.38
7.2.50.0290.01016.35
7.2.40.0120.00816.38
7.2.30.0110.01016.39
7.2.20.0140.00716.38
7.2.10.0160.01016.33
7.2.00.0120.00916.37
7.1.330.0170.00815.76
7.1.320.0130.00915.58
7.1.310.0140.00715.57
7.1.300.0160.00615.59
7.1.290.0140.00815.49
7.1.280.0160.00615.35
7.1.270.0210.00715.40
7.1.260.0140.00815.38
7.1.250.0170.00715.34
7.1.240.0140.00915.29
7.1.230.0150.00815.35
7.1.220.0150.00715.37
7.1.210.0160.00615.18
7.1.200.0240.00615.24
7.1.190.0200.00815.23
7.1.180.0140.00615.26
7.1.170.0170.00715.20
7.1.160.0170.00615.17
7.1.150.0150.00615.25
7.1.140.0140.00715.24
7.1.130.0190.00715.24
7.1.120.0130.00915.28
7.1.110.0180.00715.31
7.1.100.0180.00915.24
7.1.90.0190.00715.28
7.1.80.0150.00615.31
7.1.70.0180.00815.17
7.1.60.0190.00919.12
7.1.50.0310.00719.05
7.1.40.0180.00719.06
7.1.30.0270.00718.99
7.1.20.0310.00819.05
7.1.10.0210.00815.20
7.1.00.0240.00815.11
7.0.330.0150.00714.97
7.0.320.0220.00714.99
7.0.310.0150.00814.87
7.0.300.0210.00714.92
7.0.290.0190.00914.94
7.0.280.0150.00714.84
7.0.270.0150.00714.89
7.0.260.0150.00815.06
7.0.250.0170.00615.02
7.0.240.0200.00915.06
7.0.230.0250.00615.03
7.0.220.0170.00814.99
7.0.210.0160.00814.90
7.0.200.0250.00614.95
7.0.190.0170.00714.92
7.0.180.0170.00714.89
7.0.170.0140.00814.96
7.0.160.0270.00814.92
7.0.150.0200.00814.87
7.0.140.0170.00614.90
7.0.130.0150.00614.96
7.0.120.0280.00714.88
7.0.110.0220.00514.89
7.0.100.0160.00714.83
7.0.90.0230.00714.84
7.0.80.0190.00714.86
7.0.70.0170.00914.87
7.0.60.0160.00814.86
7.0.50.0190.00614.83
7.0.40.0170.00714.87
7.0.30.0130.00914.85
7.0.20.0220.00714.92
7.0.10.0190.00714.87
7.0.00.0370.00914.86
5.6.400.0150.00815.47
5.6.390.0130.00815.48
5.6.380.0160.00715.52
5.6.370.0160.00715.47
5.6.360.0150.00915.51
5.6.350.0150.00815.49
5.6.340.0160.00915.50
5.6.330.0120.01115.50
5.6.320.0140.01015.57
5.6.310.0180.00715.51
5.6.300.0140.01415.68
5.6.290.0140.01315.72
5.6.280.0120.01215.70
5.6.270.0150.01215.72
5.6.260.0150.01015.71
5.6.250.0130.01315.70
5.6.240.0140.01415.74
5.6.230.0110.01315.66
5.6.220.0140.01315.66
5.6.210.0140.01215.66
5.6.200.0140.01315.77
5.6.190.0140.01315.70
5.6.180.0150.01315.66
5.6.170.0150.01215.71
5.6.160.0140.01015.60
5.6.150.0140.01415.69
5.6.140.0130.01515.73
5.6.130.0160.01015.73
5.6.120.0130.01315.66
5.6.110.0160.01115.67
5.6.100.0140.01415.74
5.6.90.0150.01115.62
5.6.80.0130.01315.58
5.6.70.0150.01115.61
5.6.60.0150.01215.66
5.6.50.0150.01015.57
5.6.40.0100.01515.59
5.6.30.0150.01015.64
5.6.20.0150.01315.61
5.6.10.0130.01215.60
5.6.00.0150.01215.57
5.5.380.0140.01014.99
5.5.370.0130.01115.00
5.5.360.0110.01314.94
5.5.350.0140.01215.00
5.5.340.0140.01115.01
5.5.330.0170.01115.08
5.5.320.0140.01214.99
5.5.310.0150.01114.97
5.5.300.0140.01214.96
5.5.290.0160.01014.98
5.5.280.0160.01015.00
5.5.270.0140.01214.94
5.5.260.0130.01514.93
5.5.250.0140.01414.93
5.5.240.0140.01214.87
5.5.230.0130.01314.91
5.5.220.0150.01214.93
5.5.210.0110.01314.95
5.5.200.0130.01114.92
5.5.190.0130.01214.91
5.5.180.0130.01214.88
5.5.170.0150.00915.33
5.5.160.0150.01014.85
5.5.150.0130.01114.85
5.5.140.0130.01114.79
5.5.130.0150.01014.81
5.5.120.0140.00914.87
5.5.110.0130.01214.88
5.5.100.0150.00914.89
5.5.90.0130.01214.87
5.5.80.0140.01114.90
5.5.70.0170.01014.88
5.5.60.0130.01014.88
5.5.50.0130.01014.90
5.5.40.0120.01214.83
5.5.30.0160.00814.89
5.5.20.0130.01314.89
5.5.10.0130.01114.84
5.5.00.0140.01114.83
5.4.450.0120.00913.04
5.4.440.0110.01013.05
5.4.430.0120.00913.02
5.4.420.0120.01113.07
5.4.410.0100.01113.03
5.4.400.0120.01013.02
5.4.390.0130.00813.01
5.4.380.0110.00912.94
5.4.370.0130.00812.99
5.4.360.0120.00912.94
5.4.350.0120.00913.02
5.4.340.0120.01012.98
5.4.330.0130.00612.67
5.4.320.0120.00812.99
5.4.310.0110.00913.00
5.4.300.0130.00713.02
5.4.290.0110.00912.98
5.4.280.0110.00912.96
5.4.270.0120.00813.04
5.4.260.0120.00913.01
5.4.250.0100.01112.98
5.4.240.0120.00812.94
5.4.230.0110.00912.93
5.4.220.0110.00912.92
5.4.210.0100.00912.93
5.4.200.0090.01212.92
5.4.190.0120.01012.96
5.4.180.0120.00812.91
5.4.170.0110.00912.98
5.4.160.0100.00912.97
5.4.150.0120.01112.95
5.4.140.0110.00912.85
5.4.130.0120.01112.79
5.4.120.0110.00912.82
5.4.110.0110.00812.83
5.4.100.0100.01012.87
5.4.90.0110.01012.89
5.4.80.0080.01112.89
5.4.70.0120.00812.82
5.4.60.0110.01012.83
5.4.50.0120.00712.78
5.4.40.0130.00712.85
5.4.30.0110.00812.90
5.4.20.0110.00812.85
5.4.10.0110.00812.88
5.4.00.0100.01012.78
5.3.290.0130.01012.87
5.3.280.0120.00912.73
5.3.270.0110.00912.77
5.3.260.0110.00912.79
5.3.250.0120.00812.80
5.3.240.0110.01112.76
5.3.230.0100.01112.74
5.3.220.0110.00812.65
5.3.210.0120.00912.62
5.3.200.0110.00812.62
5.3.190.0100.01012.69
5.3.180.0110.00912.73
5.3.170.0120.01012.72
5.3.160.0120.00812.76
5.3.150.0090.01112.78
5.3.140.0120.00812.73
5.3.130.0100.01012.73
5.3.120.0120.00912.75
5.3.110.0120.00812.69
5.3.100.0120.00812.66
5.3.90.0110.00912.67
5.3.80.0110.01012.58
5.3.70.0110.01012.61
5.3.60.0120.00812.64
5.3.50.0090.01112.60
5.3.40.0120.00812.58
5.3.30.0110.00912.65
5.3.20.0100.01012.59
5.3.10.0110.00912.49
5.3.00.0110.00812.45
5.2.170.0000.00617.72
5.1.60.0010.00517.72
4.4.90.0010.00217.72
4.3.110.0000.00217.72

preferences:
32.72 ms | 403 KiB | 5 Q