3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FanStruct{ public $date; public $userid; function __construct($date, $id){ $this->date = $date; $this->userid = $id; } } $test = array( new FanStruct( 'today', 1 ) ,new FanStruct( 'today', 1 ) ,new FanStruct( 'tomorrow', 1 ) ); print_r( array_unique( $test ) );

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.40.0090.00918.79
8.3.30.0110.00419.04
8.3.20.0040.00420.30
8.3.10.0080.00023.53
8.3.00.0040.00419.51
8.2.170.0030.01222.96
8.2.160.0030.01020.38
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00826.16
8.2.120.0040.00422.12
8.2.110.0060.00322.07
8.2.100.0060.00617.84
8.2.90.0000.00719.17
8.2.80.0040.00417.97
8.2.70.0090.00017.75
8.2.60.0030.00517.80
8.2.50.0080.00018.07
8.2.40.0090.00417.85
8.2.30.0000.00718.08
8.2.20.0070.00017.64
8.2.10.0000.01118.07
8.2.00.0000.01117.66
8.1.270.0000.00822.18
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.69
8.1.230.0060.00619.02
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.63
8.1.180.0030.00619.14
8.1.170.0040.00418.61
8.1.160.0080.00021.99
8.1.150.0040.00418.71
8.1.140.0050.00317.46
8.1.130.0050.00317.71
8.1.120.0070.00017.40
8.1.110.0040.00417.53
8.1.100.0000.00717.43
8.1.90.0050.00217.47
8.1.80.0090.00017.46
8.1.70.0000.00817.42
8.1.60.0000.00817.61
8.1.50.0030.00517.41
8.1.40.0050.00317.54
8.1.30.0050.00317.64
8.1.20.0030.00517.63
8.1.10.0070.00017.49
8.1.00.0040.00417.51
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0000.00718.46
8.0.270.0070.00017.31
8.0.260.0000.00617.34
8.0.250.0070.00016.94
8.0.240.0030.00616.92
8.0.230.0070.00016.96
8.0.220.0070.00016.91
8.0.210.0070.00016.98
8.0.200.0070.00016.96
8.0.190.0030.00317.00
8.0.180.0040.00416.88
8.0.170.0030.00516.99
8.0.160.0040.00416.99
8.0.150.0000.00716.81
8.0.140.0030.00516.93
8.0.130.0030.00313.39
8.0.120.0060.00316.88
8.0.110.0000.00816.80
8.0.100.0040.00416.84
8.0.90.0000.00716.79
8.0.80.0110.00416.92
8.0.70.0000.00816.84
8.0.60.0000.00816.87
8.0.50.0070.00016.80
8.0.30.0070.01017.00
8.0.20.0120.00517.40
8.0.10.0000.00716.95
8.0.00.0070.01016.90
7.4.330.0000.00515.00
7.4.320.0040.00416.57
7.4.300.0000.00616.44
7.4.290.0000.00716.60
7.4.280.0030.00316.64
7.4.270.0070.00016.54
7.4.260.0030.00316.61
7.4.250.0040.00416.57
7.4.240.0040.00416.47
7.4.230.0080.00016.61
7.4.220.0100.00716.50
7.4.210.0090.00916.58
7.4.200.0030.00316.38
7.4.190.0040.00416.58
7.4.160.0100.00616.41
7.4.150.0110.00817.40
7.4.140.0120.00817.86
7.4.130.0130.00616.62
7.4.120.0120.00516.63
7.4.110.0060.01216.61
7.4.100.0040.01516.59
7.4.90.0100.01016.43
7.4.80.0060.01219.39
7.4.70.0070.01016.49
7.4.60.0100.00716.59
7.4.50.0060.00316.55
7.4.40.0070.00722.77
7.4.30.0090.00616.57
7.4.00.0030.01315.05
7.3.330.0000.00613.23
7.3.320.0000.00513.38
7.3.310.0000.00816.26
7.3.300.0030.00316.39
7.3.290.0090.01016.37
7.3.280.0100.00916.36
7.3.270.0150.00617.40
7.3.260.0070.01016.58
7.3.250.0090.00916.33
7.3.240.0040.01416.34
7.3.230.0090.01216.39
7.3.210.0060.01216.54
7.3.200.0140.00419.39
7.3.190.0140.00416.64
7.3.180.0080.00816.61
7.3.170.0040.01116.37
7.3.160.0170.00516.27
7.3.120.0070.01014.78
7.2.330.0120.00616.31
7.2.320.0130.00616.69
7.2.310.0090.01316.65
7.2.300.0000.01616.62
7.2.290.0060.01116.73
7.2.60.0060.00616.76
7.2.00.0030.01019.54
7.1.200.0100.00315.54
7.1.100.0070.00417.80
7.1.70.0070.00016.91
7.1.60.0130.00019.46
7.1.50.0100.01316.91
7.1.00.0030.07722.36
7.0.200.0030.01016.72
7.0.140.0000.07722.21
7.0.60.0130.08019.92
7.0.50.0100.08017.85
7.0.40.0070.05720.11
7.0.30.0470.07020.26
7.0.20.0270.06720.12
7.0.10.0200.04320.12
7.0.00.0000.04320.29
5.6.280.0070.07020.93
5.6.210.0030.08720.70
5.6.200.0100.08318.18
5.6.190.0070.06320.77
5.6.180.0200.04020.52
5.6.170.0230.08720.56
5.6.160.0100.05020.45
5.6.150.0100.03318.12
5.6.140.0100.06318.22
5.6.130.0100.08318.14
5.6.120.0070.08321.05
5.6.110.0130.06720.98
5.6.100.0000.04320.98
5.6.90.0130.06720.98
5.6.80.0130.03320.53
5.6.70.4230.04020.37
5.5.350.0100.07720.44
5.5.340.0000.04718.03
5.5.330.0000.04320.35
5.5.320.0330.04720.51
5.5.310.0270.07720.24
5.5.300.0030.08017.98
5.5.290.0030.04017.96
5.5.280.0170.07320.77
5.5.270.0070.08720.88
5.5.260.0070.07720.78
5.5.250.0030.08320.46
5.5.240.0130.04320.23
5.4.450.0200.05719.32
5.4.440.0200.06019.30
5.4.430.0370.07019.45
5.4.420.0200.06319.57
5.4.410.0170.05319.50
5.4.400.0230.05719.10
5.4.390.0230.05319.02
5.4.380.0270.05318.56
5.4.370.0300.04718.76
5.4.360.0270.06318.73
5.4.350.0200.05318.82
5.4.340.0230.07318.63
5.4.320.0060.03812.50
5.4.310.0060.03912.49
5.4.300.0100.03812.50
5.4.290.0060.04312.50
5.4.280.0130.05012.37
5.4.270.0080.05712.37
5.4.260.0110.05912.37
5.4.250.0130.05712.36
5.4.240.0110.05512.36
5.4.230.0110.05712.36
5.4.220.0110.05312.36
5.4.210.0100.05212.36
5.4.200.0060.06012.36
5.4.190.0130.05012.36
5.4.180.0150.05112.36
5.4.170.0090.05312.37
5.4.160.0130.04812.36
5.4.150.0090.05312.36
5.4.140.0140.04812.05
5.4.130.0120.04812.03
5.4.120.0150.05411.99
5.4.110.0070.05411.98
5.4.100.0100.06011.99
5.4.90.0100.05011.98
5.4.80.0060.04611.98
5.4.70.0110.04811.98
5.4.60.0150.06311.98
5.4.50.0100.05611.98
5.4.40.0070.05711.96
5.4.30.0090.04411.97
5.4.20.0090.04811.96
5.4.10.0070.04211.97
5.4.00.0060.04911.46
5.3.290.0080.04112.80
5.3.280.0090.05312.70
5.3.270.0190.08012.72
5.3.260.0110.05912.72
5.3.250.0060.05112.71
5.3.240.0180.06012.72
5.3.230.0090.04212.71
5.3.220.0080.05512.68
5.3.210.0130.04212.68
5.3.200.0090.03912.68
5.3.190.0120.04112.68
5.3.180.0090.04112.67
5.3.170.0210.07012.67
5.3.160.0150.06912.68
5.3.150.0220.07212.68
5.3.140.0100.05112.66
5.3.130.0080.07412.66
5.3.120.0220.09912.66
5.3.110.0230.06312.66
5.3.100.0270.05612.12
5.3.90.0100.05412.08
5.3.80.0110.06112.07
5.3.70.0180.08012.08
5.3.60.0120.05612.06
5.3.50.0150.06512.00
5.3.40.0140.05512.00
5.3.30.0150.07311.96
5.3.20.0120.04811.74
5.3.10.0130.05711.70
5.3.00.0060.05911.69
5.2.170.0100.0469.19
5.2.160.0080.0499.19
5.2.150.0070.0529.19
5.2.140.0080.0459.18
5.2.130.0070.0489.15
5.2.120.0110.0449.14
5.2.110.0080.0529.16
5.2.100.0150.0409.15
5.2.90.0120.0399.15
5.2.80.0170.0389.15
5.2.70.0110.0409.15
5.2.60.0120.0389.10
5.2.50.0130.0389.07
5.2.40.0080.0359.04
5.2.30.0140.0399.02
5.2.20.0100.0359.01
5.2.10.0040.0408.92
5.2.00.0040.0568.79
5.1.60.0070.0418.07
5.1.50.0130.0528.07
5.1.40.0160.0328.05
5.1.30.0160.0508.41
5.1.20.0060.0398.43
5.1.10.0070.0448.14
5.1.00.0070.0418.14
5.0.50.0070.0286.63
5.0.40.0100.0486.48
5.0.30.0050.0506.30
5.0.20.0060.0296.26
5.0.10.0090.0306.23
5.0.00.0100.0436.23
4.4.90.0050.0244.78
4.4.80.0080.0344.75
4.4.70.0070.0274.76
4.4.60.0090.0344.76
4.4.50.0100.0354.77
4.4.40.0050.0524.71
4.4.30.0040.0254.75
4.4.20.0110.0334.84
4.4.10.0030.0344.85
4.4.00.0110.0454.75
4.3.110.0130.0334.67
4.3.100.0040.0214.66
4.3.90.0030.0234.63
4.3.80.0060.0314.59
4.3.70.0080.0174.63
4.3.60.0040.0224.63
4.3.50.0070.0224.63
4.3.40.0040.0364.54
4.3.30.0050.0253.28
4.3.20.0020.0253.26
4.3.10.0020.0243.23
4.3.00.0300.02710.30

preferences:
49.41 ms | 400 KiB | 5 Q