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);

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.140.0050.00318.33
8.3.130.0040.00418.19
8.3.120.0090.00919.04
8.3.110.0050.00520.94
8.3.100.0090.00324.06
8.3.90.0080.00026.77
8.3.80.0060.00319.36
8.3.70.0150.00318.40
8.3.60.0070.00716.63
8.3.50.0150.00722.05
8.3.40.0120.00318.57
8.3.30.0140.00019.15
8.3.20.0000.00820.38
8.3.10.0060.00323.66
8.3.00.0040.00419.13
8.2.250.0060.00318.27
8.2.240.0000.00919.06
8.2.230.0100.00622.58
8.2.220.0060.00337.54
8.2.210.0030.01026.77
8.2.200.0040.00418.88
8.2.190.0110.01116.75
8.2.180.0040.01218.17
8.2.170.0120.00318.96
8.2.160.0140.00322.96
8.2.150.0060.00325.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00020.79
8.2.110.0070.00322.20
8.2.100.0040.00817.72
8.2.90.0040.00418.03
8.2.80.0000.00818.21
8.2.70.0000.00817.38
8.2.60.0000.00718.09
8.2.50.0060.00318.07
8.2.40.0040.00419.82
8.2.30.0030.00617.95
8.2.20.0000.00917.49
8.2.10.0020.00517.91
8.2.00.0030.00717.62
8.1.300.0000.00918.05
8.1.290.0090.00030.84
8.1.280.0100.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00723.84
8.1.230.0110.00022.73
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0040.00417.00
8.1.190.0030.00517.10
8.1.180.0030.00618.88
8.1.170.0040.00418.38
8.1.160.0040.00421.87
8.1.150.0000.00718.64
8.1.140.0000.00817.39
8.1.130.0030.00317.81
8.1.120.0030.00317.41
8.1.110.0040.00417.35
8.1.100.0000.00717.31
8.1.90.0040.00417.45
8.1.80.0000.00717.40
8.1.70.0030.00317.43
8.1.60.0000.00817.48
8.1.50.0000.00817.41
8.1.40.0000.00917.53
8.1.30.0040.00417.61
8.1.20.0000.00717.65
8.1.10.0070.00017.39
8.1.00.0050.00217.46
8.0.300.0000.00719.89
8.0.290.0040.00416.58
8.0.280.0030.00318.38
8.0.270.0000.00716.75
8.0.260.0000.00818.37
8.0.250.0040.00416.86
8.0.240.0060.00316.79
8.0.230.0000.00716.75
8.0.220.0070.00016.74
8.0.210.0000.00716.82
8.0.200.0060.00016.82
8.0.190.0000.00716.75
8.0.180.0000.00716.78
8.0.170.0040.00416.88
8.0.160.0030.00316.70
8.0.150.0040.00416.80
8.0.140.0040.00416.87
8.0.130.0040.00413.31
8.0.120.0040.00416.77
8.0.110.0070.00016.78
8.0.100.0040.00416.87
8.0.90.0030.00516.64
8.0.80.0030.01316.82
8.0.70.0050.00316.78
8.0.60.0080.00016.80
8.0.50.0040.00416.84
8.0.30.0060.01317.06
8.0.20.0090.01217.21
8.0.10.0090.00616.90
8.0.00.0090.00816.83
7.4.330.0080.00317.29
7.4.320.0030.00316.58
7.4.300.0030.00316.51
7.4.290.0000.00716.43
7.4.280.0040.00416.51
7.4.270.0000.00716.52
7.4.260.0000.00816.48
7.4.250.0000.00716.59
7.4.240.0040.00316.55
7.4.230.0030.00316.57
7.4.220.0120.00916.61
7.4.210.0090.00816.60
7.4.200.0080.00016.46
7.4.190.0000.00716.59
7.4.160.0100.00916.61
7.4.150.0100.00716.93
7.4.140.0060.01217.41
7.4.130.0090.00716.53
7.4.120.0070.01016.46
7.4.110.0100.00716.34
7.4.100.0070.01516.51
7.4.90.0060.01016.41
7.4.80.0100.00617.91
7.4.70.0070.00916.48
7.4.60.0110.00416.44
7.4.50.0050.00616.48
7.4.40.0070.00816.29
7.4.30.0060.00816.52
7.4.20.0070.01016.48
7.4.10.0080.00715.67
7.4.00.0060.01015.20
7.3.330.0030.00313.17
7.3.320.0050.00013.27
7.3.310.0000.00716.14
7.3.300.0000.00716.19
7.3.290.0090.00616.22
7.3.280.0110.00616.23
7.3.270.0130.00416.85
7.3.260.0110.00516.25
7.3.250.0140.00316.29
7.3.240.0080.00716.29
7.3.230.0080.00816.34
7.3.220.0070.00716.11
7.3.210.0100.00516.21
7.3.200.0130.00217.79
7.3.190.0050.01016.23
7.3.180.0020.01316.30
7.3.170.0050.01116.22
7.3.160.0080.00716.34
7.3.150.0080.00816.15
7.3.140.0070.00716.16
7.3.130.0100.00515.40
7.3.120.0060.01015.07
7.3.110.0090.00715.31
7.3.100.0060.01015.23
7.3.90.0070.01015.35
7.3.80.0020.01015.25
7.3.70.0050.00815.20
7.3.60.0070.00615.11
7.3.50.0060.00915.23
7.3.40.0080.00415.28
7.3.30.0040.00915.18
7.3.20.0160.00916.00
7.3.10.0190.00716.00
7.3.00.0200.00515.91
7.2.340.0040.01116.31
7.2.330.0150.00816.46
7.2.320.0070.01616.48
7.2.310.0100.01216.42
7.2.300.0170.00716.54
7.2.290.0150.00916.51
7.2.280.0060.01916.29
7.2.270.0160.00816.33
7.2.260.0140.00615.70
7.2.250.0110.00815.41
7.2.240.0100.00815.25
7.2.230.0080.01015.42
7.2.220.0110.00715.39
7.2.210.0110.00415.44
7.2.200.0080.00915.52
7.2.190.0100.00715.38
7.2.180.0100.00615.31
7.2.170.0090.00915.33
7.2.160.0060.00915.48
7.2.150.0180.00816.21
7.2.140.0260.00816.15
7.2.130.0200.00816.25
7.2.120.0280.00615.89
7.2.110.0410.00816.00
7.2.100.0420.00915.93
7.2.90.0400.00916.12
7.2.80.0300.00615.98
7.2.70.0260.00716.03
7.2.60.0400.00816.20
7.2.50.0380.00716.12
7.2.40.0300.01216.06
7.2.30.0370.00716.03
7.2.20.0340.01316.08
7.2.10.0370.00815.96
7.2.00.0270.00716.55
7.1.330.0080.00915.61
7.1.320.0080.00915.62
7.1.310.0110.00815.53
7.1.300.0120.00315.74
7.1.290.0100.00615.63
7.1.280.0110.00515.74
7.1.270.0100.00815.55
7.1.260.0090.00915.59
7.1.250.0180.00615.15
7.1.240.0290.00814.92
7.1.230.0390.00914.90
7.1.220.0370.00714.93
7.1.210.0380.00614.93
7.1.200.0290.00915.02
7.1.190.0320.01014.84
7.1.180.0390.00814.75
7.1.170.0340.01214.86
7.1.160.0310.01314.84
7.1.150.0350.00614.86
7.1.140.0290.00414.93
7.1.130.0330.01214.90
7.1.120.0350.00814.83
7.1.110.0360.00914.98
7.1.100.0270.00915.50
7.1.90.0310.00814.96
7.1.80.0300.00714.91
7.1.70.0260.00815.23
7.1.60.0210.00915.71
7.1.50.0180.01215.31
7.1.40.0220.00814.98
7.1.30.0250.01014.96
7.1.20.0260.01014.94
7.1.10.0270.00814.88
7.1.00.0230.01716.18
7.0.330.0320.01314.26
7.0.320.0500.01013.99
7.0.310.0590.00714.06
7.0.300.0620.00713.91
7.0.290.0620.00814.07
7.0.280.0600.00914.12
7.0.270.0480.01314.01
7.0.260.0730.00914.13
7.0.250.0490.00714.13
7.0.240.0430.00614.19
7.0.230.0450.00514.07
7.0.220.0400.00714.07
7.0.210.0410.01114.06
7.0.200.0350.00514.79
7.0.190.0310.01214.07
7.0.180.0360.01314.04
7.0.170.0280.00514.19
7.0.160.0320.00614.18
7.0.150.0360.00714.06
7.0.140.0250.02616.08
7.0.130.0260.01114.20
7.0.120.0310.00514.08
7.0.110.0360.00414.12
7.0.100.0430.01014.04
7.0.90.0430.00414.02
7.0.80.1540.00714.04
7.0.70.0340.01014.00
7.0.60.0300.02815.56
7.0.50.0320.02715.03
7.0.40.0270.02715.64
7.0.30.0340.02015.70
7.0.20.0340.02215.61
7.0.10.0210.01815.55
7.0.00.0220.01915.65
5.6.400.0150.00815.96
5.6.390.0120.01215.79
5.6.380.0110.00814.72
5.6.370.0140.00914.84
5.6.360.0110.00914.93
5.6.350.0200.00614.79
5.6.340.0160.00514.70
5.6.330.0160.00514.95
5.6.320.0110.01014.71
5.6.310.0140.01114.74
5.6.300.0180.00614.77
5.6.290.0120.01114.87
5.6.280.0130.02216.38
5.6.270.0140.00814.90
5.6.260.0110.01014.67
5.6.250.0140.00714.65
5.6.240.0130.01114.76
5.6.230.0090.00914.83
5.6.220.0170.00614.82
5.6.210.0080.02516.28
5.6.200.0080.02115.64
5.6.190.0100.01916.23
5.6.180.0210.02416.24
5.6.170.0150.01616.25
5.6.160.0110.01916.19
5.6.150.0100.02215.71
5.6.140.0140.01815.71
5.6.130.0130.02515.64
5.6.120.0100.02216.46
5.6.110.0120.02516.37
5.6.100.0090.02816.32
5.6.90.0140.02816.20
5.6.80.0100.01716.12
5.6.70.0140.00714.79
5.6.60.0110.01314.76
5.6.50.0120.01014.74
5.6.40.0160.00814.72
5.6.30.0170.00514.79
5.6.20.0160.00714.76
5.6.10.0150.00314.72
5.6.00.0150.00614.61
5.5.380.0120.00612.99
5.5.370.0100.00713.04
5.5.360.0120.00512.84
5.5.350.0160.02614.76
5.5.340.0090.02814.25
5.5.330.0100.02714.81
5.5.320.0800.01714.70
5.5.310.0120.02514.77
5.5.300.0100.02114.22
5.5.290.0080.02814.21
5.5.280.0100.01514.87
5.5.270.0120.01914.80
5.5.260.0100.02214.83
5.5.250.0120.01214.90
5.5.240.0180.02014.67
5.5.230.0110.00912.97
5.5.220.0120.00813.00
5.5.210.0120.00613.02
5.5.200.0130.00612.88
5.5.190.0100.01112.86
5.5.180.0110.00812.93
5.5.170.0130.00713.70
5.5.160.0160.00412.87
5.5.150.0100.00812.89
5.5.140.0150.00412.89
5.5.130.0140.00612.88
5.5.120.0120.00612.86
5.5.110.0090.01212.88
5.5.100.0110.00712.94
5.5.90.0080.00912.96
5.5.80.0140.00512.95
5.5.70.0120.00713.00
5.5.60.0140.00612.97
5.5.50.0110.00812.85
5.5.40.0100.00712.92
5.5.30.0100.01212.93
5.5.20.0120.00812.97
5.5.10.0070.01112.85
5.5.00.0090.00812.77
5.4.450.0060.01613.69
5.4.440.0120.02113.81
5.4.430.0100.02313.79
5.4.420.0120.02413.76
5.4.410.0080.02513.83
5.4.400.0090.02313.62
5.4.390.0120.02213.58
5.4.380.0090.01213.73
5.4.370.0100.01513.63
5.4.360.0110.01413.68
5.4.350.0070.02413.72
5.4.340.0080.02513.68
5.4.330.0070.01011.90
5.4.320.0100.02513.65
5.4.310.0080.02113.69
5.4.300.0090.01713.71
5.4.290.0110.01813.65
5.4.280.0110.02413.68
5.4.270.0090.01913.63
5.4.260.0090.02213.76
5.4.250.0100.02613.74
5.4.240.0060.02613.53
5.4.230.0090.01613.61
5.4.220.0100.01813.65
5.4.210.0100.01213.58
5.4.200.0100.02013.62
5.4.190.0110.02613.68
5.4.180.0150.01913.66
5.4.170.0100.02413.72
5.4.160.0090.02213.50
5.4.150.0100.02413.66
5.4.140.0090.02313.05
5.4.130.0090.02312.96
5.4.120.0090.01912.98
5.4.110.0100.02013.09
5.4.100.0060.02713.01
5.4.90.0100.01412.97
5.4.80.0100.01313.05
5.4.70.0060.01813.00
5.4.60.0090.02113.00
5.4.50.0100.01312.94
5.4.40.0110.01912.96
5.4.30.0060.02413.00
5.4.20.0090.02312.99
5.4.10.0090.02212.97
5.4.00.0080.02012.80
5.3.290.0080.02512.57
5.3.280.0090.01412.51
5.3.270.0090.01612.55
5.3.260.0080.02312.57
5.3.250.0070.02412.55
5.3.240.0100.02512.54
5.3.230.0110.02112.49
5.3.220.0070.02212.42
5.3.210.0120.01812.40
5.3.200.0100.02112.42
5.3.190.0080.01412.40
5.3.180.0070.01512.55
5.3.170.0130.01012.53
5.3.160.0070.02412.59
5.3.150.0080.01912.55
5.3.140.0100.02012.50
5.3.130.0110.02112.47
5.3.120.0100.01912.53
5.3.110.0110.02112.45
5.3.100.0100.01612.35
5.3.90.0130.01812.40
5.3.80.0100.02012.32
5.3.70.0090.01712.22
5.3.60.0060.01712.34
5.3.50.0100.02012.29
5.3.40.0100.02212.30
5.3.30.0110.02112.38
5.3.20.0100.01812.26
5.3.10.0100.01812.12
5.3.00.0080.01612.17
5.2.170.0060.01910.83
5.2.160.0110.02310.85
5.2.150.0050.02410.93
5.2.140.0090.02410.81
5.2.130.0070.01910.88
5.2.120.0040.01810.83
5.2.110.0070.01710.85
5.2.100.0120.01910.92
5.2.90.0070.01810.79
5.2.80.0060.02510.75
5.2.70.0090.01210.81
5.2.60.0050.01510.83
5.2.50.0040.02710.73
5.2.40.0060.02410.74
5.2.30.0040.02010.68
5.2.20.0060.02410.61
5.2.10.0090.01810.61
5.2.00.0070.02110.46
5.1.60.0050.0209.86
5.1.50.0090.0099.80
5.1.40.0080.0119.92
5.1.30.0090.01810.13
5.1.20.0080.0169.92
5.1.10.0060.0169.96
5.1.00.0040.0169.84
5.0.50.0050.0209.07
5.0.40.0060.0129.07
5.0.30.0080.0209.07
5.0.20.0050.0149.07
5.0.10.0080.0159.07
5.0.00.0090.0219.07
4.4.90.0020.0099.07
4.4.80.0040.0079.07
4.4.70.0020.0139.07
4.4.60.0030.0149.07
4.4.50.0070.0109.07
4.4.40.0040.0109.07
4.4.30.0030.0089.07
4.4.20.0030.0169.07
4.4.10.0040.0159.07
4.4.00.0020.0179.07
4.3.110.0060.0109.07
4.3.100.0040.0109.07
4.3.90.0050.0129.07
4.3.80.0040.0199.07
4.3.70.0020.0149.07
4.3.60.0070.0109.07
4.3.50.0080.0109.07
4.3.40.0050.0119.07
4.3.30.0010.0149.07
4.3.20.0020.0159.07
4.3.10.0020.0119.07
4.3.00.0050.0109.07

preferences:
34.25 ms | 403 KiB | 5 Q