3v4l.org

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

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.0070.00718.30
8.3.50.0130.00721.95
8.3.40.0150.00618.59
8.3.30.0120.00618.79
8.3.20.0040.00420.12
8.3.10.0000.00821.92
8.3.00.0070.00022.43
8.2.180.0090.01218.25
8.2.170.0140.00022.96
8.2.160.0140.00320.65
8.2.150.0000.00924.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00417.63
8.2.110.0100.00720.49
8.2.100.0040.00817.66
8.2.90.0000.00917.97
8.2.80.0030.00817.97
8.2.70.0040.00817.50
8.2.60.0000.01017.68
8.2.50.0040.00418.07
8.2.40.0000.00818.09
8.2.30.0040.00417.74
8.2.20.0050.00317.40
8.2.10.0030.00517.54
8.2.00.0030.00317.54
8.1.280.0130.00725.92
8.1.270.0040.00422.14
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00322.14
8.1.230.0070.00420.93
8.1.220.0030.00517.74
8.1.210.0000.00818.92
8.1.200.0000.00917.23
8.1.190.0080.00017.26
8.1.180.0030.00618.10
8.1.170.0070.00418.43
8.1.160.0060.00321.94
8.1.150.0050.00218.50
8.1.140.0070.00017.35
8.1.130.0000.00817.71
8.1.120.0040.00417.23
8.1.110.0090.00017.24
8.1.100.0000.00717.36
8.1.90.0030.00317.40
8.1.80.0070.00017.40
8.1.70.0050.00217.33
8.1.60.0000.00817.57
8.1.50.0000.00717.31
8.1.40.0030.00517.35
8.1.30.0040.00417.58
8.1.20.0000.00817.46
8.1.10.0040.00417.43
8.1.00.0000.00717.35
8.0.300.0000.00719.97
8.0.290.0040.00417.16
8.0.280.0030.00318.37
8.0.270.0030.00317.06
8.0.260.0000.00616.74
8.0.250.0070.00016.89
8.0.240.0000.00716.85
8.0.230.0030.00316.70
8.0.220.0060.00016.69
8.0.210.0040.00416.81
8.0.200.0070.00016.79
8.0.190.0040.00416.79
8.0.180.0050.00316.74
8.0.170.0050.00316.74
8.0.160.0030.00516.79
8.0.150.0060.00316.65
8.0.140.0000.00716.59
8.0.130.0000.00813.25
8.0.120.0040.00416.74
8.0.110.0000.00716.76
8.0.100.0040.00416.58
8.0.90.0000.00816.78
8.0.80.0150.00016.79
8.0.70.0080.00016.77
8.0.60.0040.00416.73
8.0.50.0000.00716.53
8.0.30.0100.00816.83
8.0.20.0100.01017.40
8.0.10.0070.00016.82
8.0.00.0080.00816.59
7.4.330.0030.00315.00
7.4.320.0070.00016.57
7.4.300.0000.00616.41
7.4.290.0030.00316.51
7.4.280.0040.00416.47
7.4.270.0030.00316.42
7.4.260.0070.00016.36
7.4.250.0000.00716.41
7.4.240.0020.00516.53
7.4.230.0000.00716.54
7.4.220.0070.01016.46
7.4.210.0080.00616.51
7.4.200.0000.00716.54
7.4.190.0000.00716.61
7.4.160.0070.01016.57
7.4.150.0120.00617.40
7.4.140.0110.00617.86
7.4.130.0080.00916.34
7.4.120.0140.00616.50
7.4.110.0120.01116.45
7.4.100.0140.00716.33
7.4.90.0130.00716.34
7.4.80.0120.00716.54
7.4.70.0070.01016.63
7.4.60.0120.00616.29
7.4.50.0000.00816.22
7.4.40.0060.00622.77
7.4.30.0070.01016.50
7.4.00.0100.00514.88
7.3.330.0050.00013.09
7.3.320.0000.00513.30
7.3.310.0030.00316.20
7.3.300.0030.00316.30
7.3.290.0120.00316.22
7.3.280.0090.00816.18
7.3.270.0100.00717.40
7.3.260.0130.00916.20
7.3.250.0060.01316.28
7.3.240.0100.01016.48
7.3.230.0100.00716.39
7.3.210.0120.00616.21
7.3.200.0150.00619.39
7.3.190.0070.01016.10
7.3.180.0080.01116.33
7.3.170.0000.01716.27
7.3.160.0070.01016.53
7.3.120.0060.01114.78
7.3.110.0100.00014.50
7.3.100.0110.00314.66
7.3.90.0030.00714.79
7.3.80.0100.00314.77
7.3.70.0000.01514.69
7.3.60.0090.00614.64
7.3.50.0030.00714.64
7.3.40.0060.01014.63
7.3.30.0030.01014.88
7.3.20.0060.00616.49
7.3.10.0070.01016.64
7.3.00.0120.00316.73
7.2.330.0140.00616.37
7.2.320.0140.00416.43
7.2.310.0060.01116.60
7.2.300.0060.01616.55
7.2.290.0130.00916.43
7.2.250.0070.00714.75
7.2.240.0100.00714.90
7.2.230.0110.00414.96
7.2.220.0120.00014.96
7.2.210.0080.00415.10
7.2.200.0030.01014.92
7.2.190.0090.00614.79
7.2.180.0030.01015.03
7.2.170.0060.00914.88
7.2.00.0000.01418.86
7.1.330.0070.00715.59
7.1.320.0140.00015.82
7.1.310.0060.00915.57
7.1.300.0070.00715.73
7.1.290.0030.00915.71
7.1.280.0000.01315.85
7.1.270.0060.00615.86
7.1.260.0000.01115.78
7.1.100.0040.00717.59
7.1.70.0030.00517.11
7.1.60.0090.01619.82
7.1.50.0190.01534.75
7.1.00.0000.07722.29
7.0.200.0050.00516.37
7.0.140.0070.07022.00
7.0.60.0070.07020.01
7.0.50.0030.05017.93
7.0.40.0100.08020.24
7.0.30.0500.04720.26
7.0.20.0130.05320.18
7.0.10.0200.06320.09
7.0.00.0000.04720.07
5.6.280.0170.06021.14
5.6.210.0070.04720.50
5.6.200.0070.03718.18
5.6.190.0070.08320.57
5.6.180.0030.04720.64
5.6.170.0330.05020.54
5.6.160.0030.09020.62
5.6.150.0100.05018.19
5.6.140.0030.05018.17
5.6.130.0130.07018.21
5.6.120.0030.04321.12
5.6.110.0200.07321.04
5.6.100.0100.08321.13
5.6.90.0030.04721.10
5.6.80.0130.07720.50
5.6.70.0200.02720.50
5.5.350.0070.08320.41
5.5.340.0000.05717.98
5.5.330.0170.07320.47
5.5.320.0230.04020.36
5.5.310.0270.05020.23
5.5.300.0170.05318.01
5.5.290.0100.04717.99
5.5.280.0200.06720.77
5.5.270.0070.06720.86
5.5.260.0070.08020.66
5.5.250.0030.07720.68
5.5.240.0030.08720.23
5.4.450.0430.05319.49
5.4.440.0200.04319.46
5.4.430.0270.07719.49
5.4.420.0300.03719.47
5.4.410.0300.04719.25
5.4.400.0230.03719.17
5.4.390.0270.06719.15
5.4.380.0270.06719.22
5.4.370.0230.03719.15
5.4.360.0200.05318.87
5.4.350.0270.03719.15
5.4.340.0330.07019.19
5.4.320.0130.04718.95
5.4.310.0270.04018.87
5.4.300.0230.04318.85
5.4.290.0270.06719.31
5.4.280.0270.08019.15
5.4.270.0400.06719.06
5.4.260.0230.05018.94
5.4.250.0230.04019.05
5.4.240.0330.06718.82
5.4.230.0300.07019.02
5.4.220.0270.05019.21
5.4.210.0300.04318.96
5.4.200.0330.04718.97
5.4.190.0270.04719.15
5.4.180.0400.06019.08
5.4.170.0300.07019.15
5.4.160.0230.04018.96
5.4.150.0300.07318.83
5.4.140.0230.05316.68
5.4.130.0330.06016.38
5.4.120.0300.04016.40
5.4.110.0230.03716.29
5.4.100.0230.08016.45
5.4.90.0370.06016.45
5.4.80.0300.03016.54
5.4.70.0300.06716.24
5.4.60.0270.04016.43
5.4.50.0300.06016.18
5.4.40.0270.03316.23
5.4.30.0170.04016.53
5.4.20.0330.06316.32
5.4.10.0300.06316.53
5.4.00.0230.05315.73
5.3.290.0200.06714.77
5.3.280.0270.06014.59
5.3.270.0270.05014.51
5.3.260.0200.05314.52
5.3.250.0430.06014.50
5.3.240.0270.07314.67
5.3.230.0230.04714.56
5.3.220.0330.06714.47
5.3.210.0270.04314.57
5.3.200.0300.06314.46
5.3.190.0400.06014.56
5.3.180.0300.07014.52
5.3.170.0200.04014.45
5.3.160.0200.04314.66
5.3.150.0370.06314.71
5.3.140.0270.03714.45
5.3.130.0270.05014.54
5.3.120.0230.07714.45
5.3.110.0330.06714.45
5.3.100.0270.03314.03
5.3.90.0200.04313.98
5.3.80.0370.05314.02
5.3.70.0330.06714.02
5.3.60.0330.06714.00
5.3.50.0270.07313.84
5.3.40.0300.05713.86
5.3.30.0330.04013.83
5.3.20.0300.06713.69
5.3.10.0300.06313.65
5.3.00.0270.04313.55
5.2.170.0270.05311.15
5.2.160.0200.03711.07
5.2.150.0200.06011.15
5.2.140.0200.05711.02
5.2.130.0230.03011.00
5.2.120.0270.05311.02
5.2.110.0230.06011.21
5.2.100.0230.05311.08
5.2.90.0230.06311.07
5.2.80.0270.03011.00
5.2.70.0230.05311.25
5.2.60.0170.03311.05
5.2.50.0300.05711.13
5.2.40.0170.06010.91
5.2.30.0200.04310.94
5.2.20.0200.04310.91
5.2.10.0130.03010.87
5.2.00.0170.04310.68
5.1.60.0100.0239.90
5.1.50.0130.02710.04
5.1.40.0130.0239.94
5.1.30.0100.03010.49
5.1.20.0170.02310.43
5.1.10.0130.02310.21
5.1.00.0070.0309.94
5.0.50.0070.0209.68
5.0.40.0100.0179.68
5.0.30.0100.0279.68
5.0.20.0100.0179.68
5.0.10.0070.0209.68
5.0.00.0070.0479.68
4.4.90.0070.0179.68
4.4.80.0100.0139.68
4.4.70.0100.0239.68
4.4.60.0070.0209.68
4.4.50.0100.0139.68
4.4.40.0070.0309.68
4.4.30.0000.0209.68
4.4.20.0030.0179.68
4.4.10.0070.0179.68
4.4.00.0070.0239.68
4.3.110.0100.0109.68
4.3.100.0100.0109.68
4.3.90.0030.0179.68
4.3.80.0100.0209.68
4.3.70.0070.0139.68
4.3.60.0030.0179.68
4.3.50.0100.0139.68
4.3.40.0100.0309.68
4.3.30.0000.0209.68
4.3.20.0000.0179.68
4.3.10.0030.0209.68
4.3.00.0030.0139.68

preferences:
43.32 ms | 401 KiB | 5 Q