3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oOrders = new Class_Orders(array( 'fields' => array( 'id' => 'int', 'user_id' => array( 'type' => 'dictionary', 'reference' => $oUsers ), 'name' => 'string', 'cost' => 'int', 'status' => 'int' ), 'dependents' => array() )); $oUsers = new Class_Orders(array( 'fields' => array('XXXXXXXXXXXXX'), 'dependents' => array( 'orders' => $oOrders ) ));

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.00318.30
8.3.50.0070.00921.07
8.3.40.0040.01118.69
8.3.30.0130.00318.67
8.3.20.0000.00820.38
8.3.10.0080.00023.48
8.3.00.0050.00223.46
8.2.180.0070.01118.29
8.2.170.0060.00922.96
8.2.160.0070.00720.43
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00419.64
8.2.120.0080.00026.35
8.2.110.0040.00421.19
8.2.100.0040.00717.80
8.2.90.0080.00019.19
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0070.00417.80
8.2.50.0000.00818.07
8.2.40.0060.00322.23
8.2.30.0080.00020.56
8.2.20.0080.00017.55
8.2.10.0000.00717.87
8.2.00.0040.00418.04
8.1.280.0140.00025.92
8.1.270.0000.00822.22
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0030.00623.83
8.1.230.0060.00617.77
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0080.00417.35
8.1.190.0000.00817.25
8.1.180.0060.00318.10
8.1.170.0090.00018.55
8.1.160.0080.00020.64
8.1.150.0070.00018.79
8.1.140.0080.00019.32
8.1.130.0070.00017.57
8.1.120.0040.00417.23
8.1.110.0000.00817.34
8.1.100.0000.00817.22
8.1.90.0000.00817.37
8.1.80.0040.00417.27
8.1.70.0040.00417.34
8.1.60.0040.00417.47
8.1.50.0040.00417.33
8.1.40.0060.00317.41
8.1.30.0060.00317.60
8.1.20.0040.00417.65
8.1.10.0000.00817.38
8.1.00.0070.00017.52
8.0.300.0040.00418.77
8.0.290.0090.00016.61
8.0.280.0030.00318.41
8.0.270.0000.00717.13
8.0.260.0000.00717.20
8.0.250.0030.00316.96
8.0.240.0060.00616.96
8.0.230.0000.00716.84
8.0.220.0000.00716.83
8.0.210.0030.00516.75
8.0.200.0060.00016.94
8.0.190.0000.00716.93
8.0.180.0000.00716.74
8.0.170.0050.00316.97
8.0.160.0030.00516.91
8.0.150.0040.00416.90
8.0.140.0000.00816.89
8.0.130.0000.00613.25
8.0.120.0030.00516.76
8.0.110.0050.00316.80
8.0.100.0040.00416.72
8.0.90.0040.00416.85
8.0.80.0090.00616.93
8.0.70.0070.00016.88
8.0.60.0040.00416.69
8.0.50.0000.00916.86
8.0.30.0110.00716.98
8.0.20.0090.01117.40
8.0.10.0000.00816.91
8.0.00.0110.00916.67
7.4.330.0020.00216.84
7.4.320.0030.00316.52
7.4.300.0030.00316.55
7.4.290.0000.00716.45
7.4.280.0000.01016.57
7.4.270.0000.00716.59
7.4.260.0030.00316.41
7.4.250.0000.00716.54
7.4.240.0040.00416.50
7.4.230.0000.00716.61
7.4.220.0150.00316.38
7.4.210.0080.00816.45
7.4.200.0070.00016.50
7.4.160.0130.00316.37
7.4.150.0160.00317.40
7.4.140.0080.01217.86
7.4.130.0110.00716.62
7.4.120.0070.01216.50
7.4.110.0140.01016.37
7.4.100.0080.01516.38
7.4.90.0070.01016.31
7.4.80.0140.00619.39
7.4.70.0030.01716.43
7.4.60.0100.00716.50
7.4.50.0090.00616.29
7.4.40.0070.01116.20
7.4.30.0100.00916.47
7.4.00.0120.00314.72
7.3.330.0000.00512.98
7.3.320.0070.00013.14
7.3.310.0030.00316.11
7.3.300.0000.00716.30
7.3.290.0000.00716.24
7.3.280.0090.00616.28
7.3.270.0070.01017.40
7.3.260.0100.00716.50
7.3.250.0110.00816.25
7.3.240.0110.00616.38
7.3.230.0130.00316.39
7.3.210.0050.01416.45
7.3.200.0060.00919.39
7.3.190.0090.01316.46
7.3.180.0110.00616.50
7.3.170.0080.00816.49
7.3.160.0070.01016.48
7.2.330.0100.00716.20
7.2.320.0030.01416.58
7.2.310.0080.01016.41
7.2.300.0070.01016.63
7.2.290.0090.00916.35
7.2.60.0030.01016.72
7.2.00.0030.01019.16
7.1.200.0000.00915.77
7.1.100.0030.01218.05
7.1.70.0030.00616.99
7.1.60.0030.01419.20
7.1.50.0090.00916.59
7.1.00.0100.07022.36
7.0.200.0130.00614.81
7.0.60.0100.07321.64
7.0.50.0070.04017.82
7.0.40.0030.09020.20
7.0.30.0330.07020.16
7.0.20.0230.06720.02
7.0.10.0130.08020.13
7.0.00.0030.06720.08
5.6.280.0000.03721.07
5.6.210.0130.06320.76
5.6.200.0170.07718.16
5.6.190.0100.08720.64
5.6.180.0170.04320.67
5.6.170.0530.06720.71
5.6.160.0100.04720.47
5.6.150.0030.07318.09
5.6.140.0100.05318.18
5.6.130.0130.08318.21
5.6.120.0000.04321.03
5.6.110.0070.08021.11
5.6.100.0130.04721.08
5.6.90.0170.05321.05
5.6.80.0070.08020.52
5.5.350.0270.08020.33
5.5.340.0070.04017.97
5.5.330.0070.08720.15
5.5.320.0470.04720.21
5.5.310.0130.04720.26
5.5.300.0130.07717.98
5.5.290.0030.04018.02
5.5.280.0100.07320.77
5.5.270.0100.04020.79
5.5.260.0070.06720.79
5.5.250.0030.04320.54
5.5.240.0200.06020.19

preferences:
51.5 ms | 401 KiB | 5 Q