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_export($arrayFoo['bar']);

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.0150.00016.73
8.3.50.0120.00721.93
8.3.40.0110.00418.43
8.3.30.0070.00718.54
8.3.20.0040.00420.20
8.3.10.0050.00323.51
8.3.00.0080.00019.13
8.2.180.0040.01116.75
8.2.170.0110.00422.96
8.2.160.0000.01420.35
8.2.150.0070.01024.18
8.2.140.0050.00324.66
8.2.130.0070.00417.63
8.2.120.0040.00426.35
8.2.110.0030.00619.31
8.2.100.0110.00017.93
8.2.90.0040.00419.28
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0030.00619.28
8.2.30.0070.00020.61
8.2.20.0070.00317.68
8.2.10.0000.00818.05
8.2.00.0040.00417.98
8.1.280.0170.00325.92
8.1.270.0080.00023.91
8.1.260.0040.00428.09
8.1.250.0030.00528.09
8.1.240.0130.00017.23
8.1.230.0090.00319.30
8.1.220.0000.01017.79
8.1.210.0080.00018.77
8.1.200.0090.00017.22
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00418.83
8.1.160.0000.00721.94
8.1.150.0040.00418.74
8.1.140.0040.00419.51
8.1.130.0000.00717.74
8.1.120.0050.00217.30
8.1.110.0030.00517.39
8.1.100.0040.00417.43
8.1.90.0030.00617.39
8.1.80.0000.00817.41
8.1.70.0030.00317.42
8.1.60.0030.00517.50
8.1.50.0050.00317.40
8.1.40.0000.00717.53
8.1.30.0080.00017.55
8.1.20.0040.00417.57
8.1.10.0040.00417.42
8.1.00.0040.00417.43
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0070.00018.42
8.0.270.0000.00717.07
8.0.260.0040.00417.15
8.0.250.0040.00416.91
8.0.240.0050.00316.88
8.0.230.0030.00316.89
8.0.220.0030.00316.84
8.0.210.0070.00016.66
8.0.200.0060.00316.89
8.0.190.0000.00816.89
8.0.180.0040.00416.67
8.0.170.0030.00516.74
8.0.160.0070.00016.77
8.0.150.0040.00416.75
8.0.140.0070.00016.66
8.0.130.0030.00313.23
8.0.120.0000.00816.64
8.0.110.0040.00416.85
8.0.100.0020.00516.71
8.0.90.0080.00016.64
8.0.80.0150.00616.87
8.0.70.0080.00016.65
8.0.60.0070.00016.87
8.0.50.0040.00416.76
8.0.30.0110.00716.85
8.0.20.0150.01317.40
8.0.10.0000.00716.82
8.0.00.0080.01016.66
7.4.330.0020.00216.76
7.4.320.0000.00716.51
7.4.300.0030.00316.40
7.4.290.0000.00616.39
7.4.280.0060.00316.39
7.4.270.0000.00616.51
7.4.260.0030.00616.46
7.4.250.0040.00416.32
7.4.240.0020.00616.55
7.4.230.0070.00016.66
7.4.220.0140.00416.35
7.4.210.0050.00816.58
7.4.200.0040.00416.64
7.4.160.0030.01316.42
7.4.150.0140.00417.40
7.4.140.0120.01017.86
7.4.130.0090.00916.59
7.4.120.0110.00616.41
7.4.110.0070.01016.57
7.4.100.0200.00316.29
7.4.90.0180.00016.41
7.4.80.0090.01319.39
7.4.70.0060.00916.43
7.4.60.0060.00916.51
7.4.50.0030.01316.14
7.4.40.0120.00916.52
7.4.30.0110.00716.56
7.4.10.0050.01314.79
7.4.00.0060.01014.84
7.3.330.0030.00313.32
7.3.320.0000.00513.35
7.3.310.0050.00316.25
7.3.300.0070.00016.17
7.3.290.0030.00316.29
7.3.280.0080.01016.32
7.3.270.0030.01417.40
7.3.260.0030.01716.62
7.3.250.0130.00616.34
7.3.240.0080.00916.32
7.3.230.0110.00716.55
7.3.210.0050.01116.36
7.3.200.0090.00916.45
7.3.190.0100.00716.37
7.3.180.0080.00816.32
7.3.170.0120.00916.32
7.3.160.0080.00816.50
7.3.130.0000.01815.05
7.3.120.0120.00614.49
7.3.110.0130.00314.94
7.3.100.0110.00214.84
7.3.90.0100.00214.76
7.3.80.0060.00714.76
7.3.70.0060.00914.59
7.3.60.0070.00914.81
7.3.50.0080.00214.67
7.3.40.0080.00314.69
7.3.30.0070.00514.76
7.3.20.0050.01016.55
7.3.10.0070.00716.59
7.3.00.0050.00816.51
7.2.330.0120.00616.44
7.2.320.0100.00716.34
7.2.310.0090.00616.73
7.2.300.0090.00916.44
7.2.290.0180.00316.78
7.2.260.0030.01715.21
7.2.250.0160.00214.86
7.2.240.0080.00815.08
7.2.230.0040.01214.85
7.2.220.0060.01015.03
7.2.210.0060.00514.95
7.2.200.0030.01015.01
7.2.190.0070.00714.87
7.2.180.0030.00815.02
7.2.170.0060.00815.00
7.2.160.0110.00314.75
7.2.150.0040.01216.62
7.2.140.0040.00416.92
7.2.130.0060.00616.68
7.2.120.0040.01116.93
7.2.110.0000.01416.99
7.2.100.0070.00716.70
7.2.90.0040.00816.86
7.2.80.0110.00416.55
7.2.70.0000.01316.91
7.2.60.0050.00516.87
7.2.50.0070.00716.90
7.2.40.0090.00316.94
7.2.30.0060.01217.08
7.2.20.0120.00316.43
7.2.10.0060.01216.57
7.2.00.0070.00818.22
7.1.330.0060.00815.65
7.1.320.0040.00915.74
7.1.310.0050.00715.66
7.1.300.0060.00615.75
7.1.290.0030.01115.64
7.1.280.0050.00915.73
7.1.270.0050.00815.72
7.1.260.0070.00515.64
7.1.250.0110.00415.86
7.1.240.0000.01115.83
7.1.230.0030.00915.66
7.1.220.0110.00315.68
7.1.210.0040.01215.77
7.1.200.0080.00815.76
7.1.190.0100.00315.78
7.1.180.0060.00315.86
7.1.170.0060.01015.74
7.1.160.0000.01115.55
7.1.150.0040.00415.87
7.1.140.0000.01015.81
7.1.130.0000.00915.57
7.1.120.0060.00915.66
7.1.110.0090.00615.51
7.1.100.0040.00816.90
7.1.90.0040.01215.57
7.1.80.0030.01015.57
7.1.70.0050.00616.35
7.1.60.0070.01017.59
7.1.50.0070.00716.15
7.1.40.0160.00015.65
7.1.30.0090.00915.77
7.1.20.0170.00315.85
7.1.10.0090.00915.54
7.1.00.0030.04619.09
7.0.330.0040.01115.55
7.0.320.0000.00815.46
7.0.310.0030.01015.44
7.0.300.0080.00815.43
7.0.290.0080.00015.59
7.0.280.0070.00715.32
7.0.270.0090.00015.30
7.0.260.0060.00315.36
7.0.250.0040.00415.43
7.0.240.0040.00415.52
7.0.230.0030.00615.34
7.0.220.0000.00915.50
7.0.210.0070.00715.47
7.0.200.0060.00416.11
7.0.190.0080.00415.38
7.0.180.0090.00615.37
7.0.170.0070.00815.48
7.0.160.0110.00715.20
7.0.150.0070.00715.18
7.0.140.0080.00015.17
7.0.130.0140.00315.50
7.0.120.0080.00815.47
7.0.110.0060.01015.47
7.0.100.0090.00315.60
7.0.90.0060.00615.32
7.0.80.0070.01015.57
7.0.70.0030.00515.52
7.0.60.0070.04317.67
7.0.50.0090.04516.53
7.0.40.0130.04116.77
7.0.30.0130.02616.86
7.0.20.0120.02916.79
7.0.10.0030.04216.64
7.0.00.0060.02316.87
5.6.400.0070.00314.60
5.6.390.0080.00414.07
5.6.380.0040.00814.42
5.6.370.0070.00714.31
5.6.360.0040.01214.45
5.6.350.0000.00914.63
5.6.340.0130.00314.23
5.6.330.0000.00914.64
5.6.320.0130.00014.04
5.6.310.0070.00714.17
5.6.300.0070.00714.32
5.6.290.0040.00914.35
5.6.280.0050.03017.62
5.6.270.0110.00714.65
5.6.260.0030.01014.47
5.6.250.0050.00514.60
5.6.240.0040.00814.48
5.6.230.0000.00814.50
5.6.220.0030.00514.33
5.6.210.0070.03317.52
5.6.200.0080.03216.11
5.6.190.0080.04417.55
5.6.180.0280.03317.63
5.6.170.0140.03717.52
5.6.160.0100.04017.58
5.6.150.0020.04516.26
5.6.140.0060.02316.49
5.6.130.0050.03016.17
5.6.120.0050.02317.80
5.6.110.0080.04217.81
5.6.100.0080.02817.66
5.6.90.0030.05217.64
5.6.80.0090.02417.34
5.6.70.0030.01114.27
5.6.60.0030.01014.09
5.6.50.0110.00814.38
5.6.40.0060.01214.37
5.6.30.0040.01114.34
5.6.20.0140.00014.50
5.6.10.0070.01014.08
5.6.00.0060.00614.17
5.5.380.0000.01514.43
5.5.370.0070.01114.66
5.5.360.0100.00714.34
5.5.350.0150.03117.25
5.5.340.0080.03516.13
5.5.330.0110.04517.29
5.5.320.0030.02717.26
5.5.310.0160.03017.39
5.5.300.0070.02916.24
5.5.290.0060.03516.30
5.5.280.0070.04217.74
5.5.270.0080.04317.54
5.5.260.0070.03917.50
5.5.250.0070.02317.49
5.5.240.1720.02217.11
5.5.230.0030.01214.34
5.5.220.0060.00614.35
5.5.210.0060.01014.33
5.5.200.0030.00614.48
5.5.190.0000.00814.29
5.5.180.0120.00414.15
5.5.170.0030.01414.15
5.5.160.0000.01414.29
5.5.150.0000.01314.23
5.5.140.0050.00514.27
5.5.130.0040.00414.11
5.5.120.0070.01014.34
5.5.110.0090.00314.18
5.5.100.0000.01714.22
5.5.90.0030.01014.34
5.5.80.0030.01014.51
5.5.70.0070.00714.34
5.5.60.0060.00814.49
5.5.50.0110.00314.13
5.5.40.0080.00414.36
5.5.30.0030.01214.36
5.5.20.0080.00014.24
5.5.10.0060.00313.96
5.5.00.0040.01114.25

preferences:
78.51 ms | 401 KiB | 5 Q