3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $a->first = 1; $b = array($a->first, $a->second ?: NULL);

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.0100.01018.76
8.4.10.0090.00920.69
8.3.150.0040.00417.18
8.3.140.0070.00317.04
8.3.130.0080.00018.84
8.3.120.0110.00718.76
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0100.01026.77
8.3.80.0060.00616.84
8.3.70.0140.00316.62
8.3.60.0140.00418.68
8.3.50.0110.00616.30
8.3.40.0110.00418.83
8.3.30.0070.00718.79
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00226.16
8.2.260.0040.00418.64
8.2.250.0070.00018.46
8.2.240.0040.00417.36
8.2.230.0090.00022.58
8.2.220.0100.01037.54
8.2.210.0070.01126.77
8.2.200.0000.01118.29
8.2.190.0110.00418.41
8.2.180.0060.00925.92
8.2.170.0040.01119.04
8.2.160.0070.00722.96
8.2.150.0090.00025.66
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0040.00419.95
8.2.110.0090.00021.97
8.2.100.0000.01118.03
8.2.90.0030.00517.75
8.2.80.0050.00318.77
8.2.70.0050.00517.50
8.2.60.0100.00017.91
8.2.50.0060.00318.07
8.2.40.0050.00318.22
8.2.30.0040.00418.12
8.2.20.0070.00018.09
8.2.10.0000.00820.99
8.2.00.0080.00319.20
8.1.310.0030.00516.99
8.1.300.0110.00417.86
8.1.290.0040.00830.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.92
8.1.230.0080.00322.08
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0050.00318.51
8.1.160.0040.00418.91
8.1.150.0030.00518.98
8.1.140.0000.00718.89
8.1.130.0050.00319.90
8.1.120.0050.00217.35
8.1.110.0070.00017.48
8.1.100.0070.00017.44
8.1.90.0040.00417.35
8.1.80.0040.00417.30
8.1.70.0040.00417.36
8.1.60.0040.00417.62
8.1.50.0000.00817.43
8.1.40.0000.00717.57
8.1.30.0090.00317.65
8.1.20.0000.00817.62
8.1.10.0030.00517.56
8.1.00.0030.00517.47
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.49
8.0.270.0000.00817.98
8.0.260.0050.00518.05
8.0.250.0040.00417.04
8.0.240.0000.00716.90
8.0.230.0060.00016.96
8.0.220.0000.00716.95
8.0.210.0070.00016.95
8.0.200.0070.00016.97
8.0.190.0040.00416.99
8.0.180.0000.00816.96
8.0.170.0040.00416.92
8.0.160.0000.00716.98
8.0.150.0070.00016.92
8.0.140.0000.01016.84
8.0.130.0060.00013.39
8.0.120.0030.00916.91
8.0.110.0070.00016.83
8.0.100.0050.00317.01
8.0.90.0040.00417.01
8.0.80.0150.00216.89
8.0.70.0000.00816.83
8.0.60.0040.00416.98
8.0.50.0030.00516.94
8.0.30.0150.00616.91
8.0.20.0140.00316.92
8.0.10.0040.01217.06
8.0.00.0060.01017.08
7.4.330.0000.00515.55
7.4.320.0030.00316.60
7.4.300.0000.00716.48
7.4.290.0030.00316.54
7.4.280.0070.00016.59
7.4.270.0030.00316.59
7.4.260.0000.00513.33
7.4.250.0040.00416.47
7.4.240.0030.00316.43
7.4.230.0070.00016.60
7.4.220.0040.00416.58
7.4.210.0090.00516.62
7.4.200.0050.00216.38
7.4.160.0110.01116.64
7.4.150.0040.01116.50
7.4.140.0070.00816.56
7.4.130.0110.00716.61
7.4.120.0110.00316.41
7.4.110.0110.00916.55
7.4.100.0120.00316.59
7.4.90.0040.01016.41
7.4.80.0110.00416.45
7.4.70.0180.00316.41
7.4.60.0060.00916.34
7.4.50.0130.00616.41
7.4.40.0000.01416.34
7.4.30.0080.00616.47
7.4.20.0070.00716.44
7.4.10.0080.00616.46
7.4.00.0100.01016.54
7.3.330.0070.00016.24
7.3.320.0000.00513.00
7.3.310.0050.00216.39
7.3.300.0000.00616.09
7.3.290.0000.00716.26
7.3.270.0090.00916.21
7.3.260.0080.01216.28
7.3.250.0100.00316.26
7.3.240.0000.01416.20
7.3.230.0110.00616.29
7.3.220.0100.00316.15
7.3.210.0040.01116.12
7.3.200.0090.00616.30
7.3.190.0060.01016.16
7.3.180.0110.00316.17
7.3.170.0110.00716.15
7.3.160.0030.01216.17
7.3.150.0030.01016.42
7.3.140.0130.00816.20
7.3.130.0130.00316.14
7.3.120.0070.01316.14
7.3.110.0000.01516.18
7.3.100.0120.00316.13
7.3.90.0030.01016.42
7.3.80.0070.00716.21
7.3.70.0070.01016.25
7.3.60.0000.01416.29
7.3.50.0070.00716.32
7.3.40.0110.00316.38
7.3.30.0060.00916.31
7.3.20.0270.00616.33
7.3.10.0170.00416.21
7.3.00.0250.00016.35
7.2.340.0120.01516.25
7.2.330.0190.00616.23
7.2.320.0190.00616.24
7.2.310.0050.02216.26
7.2.300.0160.00916.23
7.2.290.0150.00916.29
7.2.280.0200.00616.22
7.2.270.0180.00916.27
7.2.260.0210.00616.25
7.2.250.0200.00516.27
7.2.240.0180.00916.30
7.2.230.0200.00416.30
7.2.220.0120.01216.21
7.2.210.0200.00416.23
7.2.200.0210.00416.36
7.2.190.0170.00916.43
7.2.180.0150.01016.45
7.2.170.0190.00716.48
7.2.160.0110.01416.41
7.2.150.0200.00516.50
7.2.140.0130.01316.41
7.2.130.0140.01616.70
7.2.120.0230.00616.51
7.2.110.0170.01016.58
7.2.100.0230.01016.61
7.2.90.0160.01616.50
7.2.80.0190.01016.52
7.2.70.0140.01416.58
7.2.60.0240.00716.51
7.2.50.0200.00516.51
7.2.40.0140.01416.57
7.2.30.0250.01016.56
7.2.20.0200.01316.52
7.2.10.0410.01216.62
7.2.00.0220.01016.48
7.1.330.0200.00615.49
7.1.320.0170.00615.50
7.1.310.0130.00915.42
7.1.300.0270.01215.45
7.1.290.0130.01015.55
7.1.280.0230.00515.44
7.1.270.0110.01115.56
7.1.260.0170.00715.51
7.1.250.0230.00615.47
7.1.240.0120.01215.32
7.1.230.0210.00915.52
7.1.220.0150.01215.46
7.1.210.0210.01015.44
7.1.200.0390.00715.44
7.1.190.0210.00615.41
7.1.180.0180.01115.36
7.1.170.0190.00915.37
7.1.160.0210.00815.39
7.1.150.0230.00615.34
7.1.140.0210.00815.38
7.1.130.0150.00715.32
7.1.120.1740.00915.38
7.1.110.0220.00815.38
7.1.100.0300.00015.31
7.1.90.0180.00715.38
7.1.80.0220.00715.55
7.1.70.0140.01415.24
7.1.60.0160.00815.42
7.1.50.0160.00915.41
7.1.40.0330.00715.43
7.1.30.0280.00815.37
7.1.20.0150.01215.45
7.1.10.0260.01015.42
7.1.00.0180.00715.38
7.0.330.0220.00715.17
7.0.320.0200.00715.20
7.0.310.0460.00715.16
7.0.300.0080.01615.22
7.0.290.0210.00615.12
7.0.280.0240.00015.00
7.0.270.0190.00415.15
7.0.260.0130.01315.02
7.0.250.0200.00715.31
7.0.240.0160.01315.33
7.0.230.0190.00815.17
7.0.220.0150.01215.36
7.0.210.0160.00815.10
7.0.200.0120.01215.28
7.0.190.0160.01015.25
7.0.180.0160.00815.30
7.0.170.0150.00815.33
7.0.160.0260.00315.14
7.0.150.0160.01215.11
7.0.140.0180.00615.06
7.0.130.0230.00015.24
7.0.120.0220.00315.30
7.0.110.0140.01115.16
7.0.100.0220.00015.14
7.0.90.0190.00315.13
7.0.80.0150.00615.06
7.0.70.0090.01515.05
7.0.60.0200.01315.11
7.0.50.0180.00915.06
7.0.40.0510.00515.22
7.0.30.0140.00715.25
7.0.20.0180.01115.18
7.0.10.0140.00715.07
7.0.00.0180.00615.06
5.6.400.0220.01115.76
5.6.390.0220.01215.85
5.6.380.0200.01015.88
5.6.370.0090.01715.84
5.6.360.0080.01915.86
5.6.350.0180.00615.86
5.6.340.0250.00015.77
5.6.330.0230.00715.89
5.6.320.0210.00915.79
5.6.310.0180.00915.88
5.6.300.0420.01315.64
5.6.290.0220.00715.85
5.6.280.0170.01015.79
5.6.270.0130.01315.81
5.6.260.0290.00015.90
5.6.250.0140.01115.74
5.6.240.0140.00915.75
5.6.230.0170.00815.87
5.6.220.0140.01015.96
5.6.210.0120.01215.89
5.6.200.0150.00915.93
5.6.190.0210.00315.99
5.6.180.0180.00615.88
5.6.170.0160.00816.03
5.6.160.0190.00616.16
5.6.150.0150.01116.18
5.6.140.0150.01915.96
5.6.130.0110.01916.03
5.6.120.0210.00515.84
5.6.110.0170.00715.90
5.6.100.0130.01015.87
5.6.90.0140.01115.82
5.6.80.0170.00915.97
5.6.70.0200.01215.95
5.6.60.0170.00715.86
5.6.50.0160.01015.89
5.6.40.0170.00815.89
5.6.30.0120.01515.86
5.6.20.0160.01115.74
5.6.10.0220.00415.75
5.6.00.0160.01015.87
5.5.380.0090.01416.15
5.5.370.0160.00916.15
5.5.360.0240.00815.89
5.5.350.0100.01615.89
5.5.340.0120.01215.82
5.5.330.0140.00915.86
5.5.320.0190.00615.82
5.5.310.0140.01115.64
5.5.300.0090.01915.82
5.5.290.0240.01215.86
5.5.280.0200.00515.61
5.5.270.0160.01015.65
5.5.260.0150.00915.76
5.5.250.0140.01115.98
5.5.240.0170.00915.95
5.5.230.0210.00515.91
5.5.220.0120.01215.72
5.5.210.0200.00716.04
5.5.200.0160.01115.65
5.5.190.0150.01215.64
5.5.180.0140.01215.86
5.5.170.0120.01515.66
5.5.160.0180.01215.59
5.5.150.0190.01315.68
5.5.140.0190.01615.48
5.5.130.0230.00715.57
5.5.120.0180.00615.52
5.5.110.0160.01115.57
5.5.100.0180.00715.88
5.5.90.0150.01515.67
5.5.80.0190.01415.64
5.5.70.0170.01815.81
5.5.60.0120.01215.68
5.5.50.0160.01115.62
5.5.40.0190.00815.70
5.5.30.0230.00615.85
5.5.20.0180.00715.70
5.5.10.0260.00915.66
5.5.00.0190.00515.61
5.4.450.0120.00812.64
5.4.440.0070.01312.64
5.4.430.0140.00412.61
5.4.420.0150.00312.61
5.4.410.0090.01412.53
5.4.400.0120.00912.51
5.4.390.0140.01112.48
5.4.380.0160.00312.63
5.4.370.0110.01412.47
5.4.360.0060.01012.52
5.4.350.0080.01612.51
5.4.340.0130.00512.48
5.4.330.0150.00612.48
5.4.320.0200.00312.54
5.4.310.0250.00312.55
5.4.300.0130.01312.56
5.4.290.0190.00512.69
5.4.280.0110.01412.58
5.4.270.0060.01312.57
5.4.260.0150.00912.47
5.4.250.0090.01612.54
5.4.240.0200.01012.48
5.4.230.0150.00512.28
5.4.220.0150.00612.43
5.4.210.0150.00712.28
5.4.200.0100.01312.29
5.4.190.0100.01012.29
5.4.180.0140.00712.29
5.4.170.0100.00812.34
5.4.160.0130.00512.36
5.4.150.0150.00512.30
5.4.140.0170.00312.50
5.4.130.0070.01012.57
5.4.120.0090.00912.56
5.4.110.0110.00812.54
5.4.100.0130.00512.54
5.4.90.0120.00812.53
5.4.80.0110.00912.59
5.4.70.0110.00412.63
5.4.60.0120.00412.60
5.4.50.0090.00912.53
5.4.40.0110.00712.51
5.4.30.0090.00912.53
5.4.20.0140.00312.53
5.4.10.0060.01212.61
5.4.00.0120.00612.41
5.3.290.0130.01313.02
5.3.280.0090.00912.95
5.3.270.0130.00613.08
5.3.260.0130.00713.08
5.3.250.0170.00712.90
5.3.240.0110.00812.88
5.3.230.0240.01412.90
5.3.220.0130.00512.72
5.3.210.0190.00612.86
5.3.200.0190.00612.77
5.3.190.0100.01012.88
5.3.180.0070.01112.95
5.3.170.0100.00812.95
5.3.160.0100.00813.05
5.3.150.0130.00912.95
5.3.140.0100.01013.02
5.3.130.0080.01113.09
5.3.120.0110.00812.91
5.3.110.0160.00612.96
5.3.100.0180.00013.07
5.3.90.0060.01213.23
5.3.80.0180.00012.83
5.3.70.0110.00812.86
5.3.60.0130.00512.87
5.3.50.0090.00912.86
5.3.40.0090.01212.95
5.3.30.0160.00212.85
5.3.20.0070.01112.98
5.3.10.0060.01212.71
5.3.00.0100.01012.65
5.2.170.0100.00711.77
5.2.160.0120.00411.77
5.2.150.0160.00311.73
5.2.140.0110.00411.79
5.2.130.0060.00911.81
5.2.120.0090.00611.78
5.2.110.0110.00411.79
5.2.100.0110.00411.80
5.2.90.0090.00611.88
5.2.80.0100.00711.61
5.2.70.0110.00611.65
5.2.60.0110.00411.71
5.2.50.0080.00811.92
5.2.40.0080.00811.69
5.2.30.0070.00811.71
5.2.20.0110.00411.52
5.2.10.0170.00411.46
5.2.00.0100.00711.42
5.1.60.0030.01111.24
5.1.50.0100.00311.24
5.1.40.0060.00711.24
5.1.30.0090.00611.24
5.1.20.0080.00811.24
5.1.10.0030.01011.24
5.1.00.0050.00811.24
5.0.50.0090.00311.24
5.0.40.0070.00711.24
5.0.30.0080.00311.24
5.0.20.0060.00611.24
5.0.10.0040.00911.24
5.0.00.0080.00411.24
4.4.90.0080.00011.24
4.4.80.0090.00011.24
4.4.70.0050.00211.24
4.4.60.0050.00211.24
4.4.50.0080.00211.24
4.4.40.0030.00411.24
4.4.30.0040.00211.24
4.4.20.0040.00411.24
4.4.10.0030.00411.24
4.4.00.0070.00011.24
4.3.110.0060.00011.24
4.3.100.0070.00011.24
4.3.90.0070.00011.24
4.3.80.0040.00311.24
4.3.70.0100.00611.24
4.3.60.0000.00711.24
4.3.50.0000.00811.24
4.3.40.0020.00511.24
4.3.30.0000.00611.24
4.3.20.0040.00211.24
4.3.10.0000.00611.24
4.3.00.0030.00311.24

preferences:
39.18 ms | 403 KiB | 5 Q