3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; } $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.4.20.0130.00717.39
8.4.10.0030.00617.59
8.3.150.0070.01018.61
8.3.140.0060.00316.63
8.3.130.0050.00318.47
8.3.120.0050.00518.90
8.3.110.0070.00420.94
8.3.100.0000.00816.60
8.3.90.0030.00618.56
8.3.80.0060.00316.75
8.3.70.0120.00318.30
8.3.60.0140.00718.43
8.3.50.0130.00321.92
8.3.40.0070.00718.51
8.3.30.0110.00719.05
8.3.20.0040.00420.33
8.3.10.0050.00223.69
8.3.00.0000.00820.81
8.2.260.0050.00316.40
8.2.250.0040.00418.41
8.2.240.0000.00916.95
8.2.230.0030.00522.58
8.2.220.0040.00424.06
8.2.210.0090.00926.77
8.2.200.0040.00416.63
8.2.190.0150.00416.58
8.2.180.0150.00618.54
8.2.170.0070.00722.96
8.2.160.0100.01020.38
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00220.75
8.2.110.0090.00020.95
8.2.100.0060.00617.78
8.2.90.0000.00817.91
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0050.00317.93
8.2.50.0040.00417.55
8.2.40.0000.00819.35
8.2.30.0040.00419.37
8.2.20.0010.00819.13
8.2.10.0090.00218.41
8.2.00.0040.00818.17
8.1.310.0080.00018.62
8.1.300.0060.00318.02
8.1.290.0090.00030.84
8.1.280.0110.00425.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0000.00921.93
8.1.230.0080.00321.03
8.1.220.0030.00617.74
8.1.210.0070.00318.77
8.1.200.0000.00917.23
8.1.190.0040.00417.22
8.1.180.0000.00918.10
8.1.170.0030.00517.63
8.1.160.0000.00718.86
8.1.150.0020.00618.70
8.1.140.0100.00219.00
8.1.130.0060.00618.04
8.1.120.0080.00317.99
8.1.110.0050.00817.98
8.1.100.0080.00517.94
8.1.90.0070.00518.04
8.1.80.0060.00617.92
8.1.70.0050.00618.00
8.1.60.0110.00418.19
8.1.50.0100.00318.14
8.1.40.0060.00718.13
8.1.30.0090.00418.25
8.1.20.0040.00818.26
8.1.10.0090.00418.06
8.1.00.0070.00618.02
8.0.300.0060.00319.91
8.0.290.0060.00316.63
8.0.280.0030.00618.31
8.0.270.0060.00617.38
8.0.260.0060.00417.32
8.0.250.0100.00217.42
8.0.240.0090.00018.28
8.0.230.0050.00217.43
8.0.220.0040.00617.35
8.0.210.0070.00317.39
8.0.200.0000.01117.45
8.0.190.0090.00217.43
8.0.180.0070.00317.41
8.0.170.0030.00717.34
8.0.160.0050.00517.35
8.0.150.0100.00217.36
8.0.140.0040.00717.38
8.0.130.0060.00315.59
8.0.120.0100.00117.27
8.0.110.0080.00417.31
8.0.100.0060.00517.33
8.0.90.0100.00217.36
8.0.80.0110.00717.35
8.0.70.0120.00018.15
8.0.60.0050.00517.34
8.0.50.0030.00917.31
8.0.30.0160.00817.22
8.0.20.0100.00917.37
8.0.10.0140.01017.52
8.0.00.0120.00717.17
7.4.330.0040.00515.99
7.4.320.0060.00617.07
7.4.300.0070.00316.80
7.4.290.0080.00417.14
7.4.280.0080.00417.17
7.4.270.0040.00817.06
7.4.260.0050.00717.11
7.4.250.0080.00417.17
7.4.240.0040.00616.92
7.4.230.0100.00217.04
7.4.220.0090.00817.08
7.4.210.0090.00517.17
7.4.200.0090.00217.95
7.4.190.0140.00017.68
7.4.180.0070.00717.75
7.4.160.0140.00516.91
7.4.150.0130.00917.12
7.4.140.0120.00917.43
7.4.130.0120.00716.66
7.4.120.0150.00816.64
7.4.110.0170.00816.73
7.4.100.0100.01016.80
7.4.90.0130.00716.79
7.4.80.0160.00517.42
7.4.70.0170.00516.75
7.4.60.0150.00516.73
7.4.50.0120.00616.68
7.4.40.0100.01116.77
7.4.30.0110.01116.73
7.4.20.0140.00716.70
7.4.10.0130.00816.66
7.4.00.0080.00916.23
7.3.330.0100.00015.17
7.3.320.0090.00115.19
7.3.310.0080.00316.79
7.3.300.0060.00516.86
7.3.290.0070.00717.64
7.3.280.0110.00816.47
7.3.270.0090.01017.01
7.3.260.0140.00816.74
7.3.250.0120.00716.59
7.3.240.0200.00616.57
7.3.230.0100.01216.50
7.3.220.0080.01316.58
7.3.210.0150.00516.48
7.3.200.0120.00816.46
7.3.190.0130.00916.54
7.3.180.0130.00716.59
7.3.170.0120.00716.55
7.3.160.0140.00716.58
7.3.150.0140.01016.55
7.3.140.0140.00816.47
7.3.130.0130.00816.59
7.3.120.0110.01016.17
7.3.110.0130.00716.52
7.3.100.0140.00816.53
7.3.90.0150.00716.58
7.3.80.0130.00816.56
7.3.70.0100.01016.58
7.3.60.0140.00516.62
7.3.50.0140.00616.25
7.3.40.0110.00716.19
7.3.30.0110.01016.24
7.3.20.0140.00616.19
7.3.10.0090.01116.25
7.3.00.0500.00915.77
7.2.340.0150.00816.65
7.2.330.0120.01116.66
7.2.320.0140.00716.73
7.2.310.0120.00916.76
7.2.300.0130.00716.72
7.2.290.0090.01116.62
7.2.280.0140.00716.74
7.2.270.0100.01316.55
7.2.260.0130.00716.70
7.2.250.0140.00816.79
7.2.240.0110.01016.60
7.2.230.0160.00816.68
7.2.220.0090.01216.77
7.2.210.0110.00816.75
7.2.200.0140.00616.73
7.2.190.0150.00716.67
7.2.180.0100.01016.35
7.2.170.0140.00816.36
7.2.160.0120.00816.35
7.2.150.0160.00816.76
7.2.140.0140.00916.79
7.2.130.0370.00816.48
7.2.120.0300.00716.40
7.2.110.0280.00916.38
7.2.100.0310.00816.42
7.2.90.0290.00716.21
7.2.80.0370.00716.25
7.2.70.0380.00716.24
7.2.60.0390.00616.33
7.2.50.0370.01016.43
7.2.40.0330.00816.26
7.2.30.0290.00916.28
7.2.20.0320.00816.18
7.2.10.0300.00816.25
7.2.00.0260.00816.50
7.1.330.0170.00616.19
7.1.320.0160.00716.32
7.1.310.0140.00816.17
7.1.300.0170.00716.21
7.1.290.0170.00616.19
7.1.280.0170.01015.68
7.1.270.0160.00615.72
7.1.260.0180.00615.66
7.1.250.0300.00915.27
7.1.240.0360.00715.12
7.1.230.0330.01015.09
7.1.220.0390.00615.22
7.1.210.0450.00815.05
7.1.200.0370.00815.08
7.1.190.0390.00714.99
7.1.180.0440.00715.17
7.1.170.0500.00914.94
7.1.160.0400.00914.92
7.1.150.0470.01014.92
7.1.140.0390.00814.96
7.1.130.0350.00614.96
7.1.120.0330.00814.93
7.1.110.0380.00714.96
7.1.100.0350.01014.96
7.1.90.0630.01114.91
7.1.80.0360.01014.97
7.1.70.0330.00615.21
7.1.60.0350.00617.16
7.1.50.0320.01017.23
7.1.40.0360.00917.25
7.1.30.0440.00817.23
7.1.20.0370.00717.23
7.1.10.0270.00915.01
7.1.00.0300.01615.76
7.0.330.0560.00614.82
7.0.320.0480.00614.88
7.0.310.0420.00914.66
7.0.300.0440.00714.63
7.0.290.0440.00914.63
7.0.280.0390.00714.60
7.0.270.0440.00614.76
7.0.260.0420.00814.65
7.0.250.0360.01014.79
7.0.240.0380.00814.70
7.0.230.0350.00714.80
7.0.220.0380.00714.73
7.0.210.0260.00914.73
7.0.200.0290.00614.91
7.0.190.0330.00514.71
7.0.180.0300.00814.73
7.0.170.0350.00814.72
7.0.160.0300.00814.75
7.0.150.0710.01114.64
7.0.140.0290.01615.55
7.0.130.0380.01014.74
7.0.120.0340.00914.75
7.0.110.0640.00714.68
7.0.100.0280.00714.66
7.0.90.0280.01615.31
7.0.80.0240.01915.25
7.0.70.0250.01715.22
7.0.60.0280.01315.16
7.0.50.0530.01515.32
7.0.40.0340.01615.26
7.0.30.0250.01215.32
7.0.20.0280.01615.53
7.0.10.0260.01615.39
7.0.00.0330.01415.33
5.6.400.0170.00815.75
5.6.390.0110.01215.67
5.6.380.0140.00815.11
5.6.370.0140.00915.37
5.6.360.0170.00715.29
5.6.350.0120.01215.38
5.6.340.0150.00715.37
5.6.330.0170.00715.40
5.6.320.0140.01015.37
5.6.310.0180.00715.36
5.6.300.0190.00715.17
5.6.290.0150.00915.23
5.6.280.0150.01715.80
5.6.270.0140.01115.22
5.6.260.0160.00815.17
5.6.250.0150.00915.13
5.6.240.0140.00915.12
5.6.230.0160.01515.81
5.6.220.0130.01315.84
5.6.210.0130.01715.78
5.6.200.0160.01615.86
5.6.190.0150.01615.89
5.6.180.0120.01815.89
5.6.170.0130.01515.92
5.6.160.0130.01715.83
5.6.150.0130.01815.80
5.6.140.0150.01415.83
5.6.130.0160.01515.88
5.6.120.0130.01615.88
5.6.110.0140.01615.85
5.6.100.0130.01415.80
5.6.90.0120.01815.86
5.6.80.0120.01715.74
5.6.70.0120.01515.76
5.6.60.0100.01715.71
5.6.50.0140.01315.80
5.6.40.0140.01215.75
5.6.30.0130.01615.72
5.6.20.0130.01515.70
5.6.10.0130.01615.67
5.6.00.0130.01515.72
5.5.380.0130.01113.98
5.5.370.0110.01914.65
5.5.360.0120.01714.67
5.5.350.0130.01514.63
5.5.340.0120.01714.63
5.5.330.0120.01414.74
5.5.320.0100.01714.72
5.5.310.0110.01714.65
5.5.300.0130.01714.74
5.5.290.0140.01414.69
5.5.280.0110.01414.68
5.5.270.0150.01414.63
5.5.260.0100.01814.74
5.5.250.0110.01514.75
5.5.240.0100.01714.52
5.5.230.0140.01014.65
5.5.220.0120.01614.58
5.5.210.0110.01414.69
5.5.200.0130.01514.55
5.5.190.0110.01514.56
5.5.180.0130.01414.56
5.5.170.0140.00814.27
5.5.160.0130.01414.50
5.5.150.0120.01614.61
5.5.140.0120.01514.49
5.5.130.0110.01814.54
5.5.120.0120.01114.58
5.5.110.0120.01714.53
5.5.100.0130.01614.60
5.5.90.0120.01514.51
5.5.80.0140.01414.55
5.5.70.0120.01714.52
5.5.60.0120.01414.53
5.5.50.0110.01614.51
5.5.40.0130.01314.59
5.5.30.0110.01114.63
5.5.20.0140.01114.51
5.5.10.0150.00814.50
5.5.00.0100.01114.58
5.4.450.0090.01713.36
5.4.440.0100.01313.33
5.4.430.0110.01413.32
5.4.420.0120.01313.42
5.4.410.0110.01413.32
5.4.400.0100.01213.33
5.4.390.0100.01013.29
5.4.380.0080.01113.28
5.4.370.0110.01413.26
5.4.360.0120.01213.22
5.4.350.0100.01713.25
5.4.340.0120.01313.25
5.4.330.0100.00712.52
5.4.320.0110.01413.31
5.4.310.0120.01013.27
5.4.300.0100.01113.27
5.4.290.0110.01213.25
5.4.280.0100.01313.25
5.4.270.0100.01513.23
5.4.260.0100.01513.32
5.4.250.0090.01613.26
5.4.240.0090.01613.35
5.4.230.0130.01113.24
5.4.220.0110.01313.22
5.4.210.0090.01213.30
5.4.200.0140.01213.29
5.4.190.0130.00913.13
5.4.180.0110.00913.25
5.4.170.0120.00813.25
5.4.160.0080.01213.21
5.4.150.0100.00913.27
5.4.140.0090.01012.96
5.4.130.0100.00913.03
5.4.120.0090.00912.95
5.4.110.0080.01413.01
5.4.100.0100.00912.95
5.4.90.0070.01112.97
5.4.80.0080.01013.00
5.4.70.0080.01412.99
5.4.60.0100.01012.99
5.4.50.0080.01113.03
5.4.40.0110.00913.00
5.4.30.0090.01113.01
5.4.20.0110.00912.95
5.4.10.0090.01113.03
5.4.00.0100.00912.88
5.3.290.0120.00912.90
5.3.280.0120.01112.82
5.3.270.0100.01012.83
5.3.260.0080.01212.84
5.3.250.0090.01112.79
5.3.240.0090.01412.77
5.3.230.0120.01112.83
5.3.220.0070.01212.63
5.3.210.0110.00912.71
5.3.200.0100.00912.72
5.3.190.0110.01312.74
5.3.180.0100.00912.80
5.3.170.0100.01112.80
5.3.160.0080.01112.87
5.3.150.0090.01012.82
5.3.140.0100.00912.76
5.3.130.0100.01112.71
5.3.120.0090.01012.76
5.3.110.0100.01112.72
5.3.100.0070.01212.70
5.3.90.0090.01112.72
5.3.80.0090.01012.65
5.3.70.0080.01112.64
5.3.60.0090.00912.68
5.3.50.0080.01012.61
5.3.40.0100.00912.63
5.3.30.0100.01112.63
5.3.20.0110.00612.63
5.3.10.0100.01212.52
5.3.00.0100.00912.47

preferences:
79.76 ms | 403 KiB | 5 Q