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( 'id' => 'int', 'login' => 'string' ), '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.0040.01416.25
8.3.50.0110.00316.32
8.3.40.0040.01118.79
8.3.30.0110.00718.51
8.3.20.0040.00420.35
8.3.10.0040.00423.64
8.3.00.0030.00523.46
8.2.180.0100.00718.54
8.2.170.0110.00418.96
8.2.160.0030.01022.96
8.2.150.0070.00024.18
8.2.140.0070.00324.66
8.2.130.0080.00019.56
8.2.120.0060.00326.35
8.2.110.0040.00721.12
8.2.100.0040.00717.75
8.2.90.0060.00319.09
8.2.80.0000.00917.97
8.2.70.0060.00317.50
8.2.60.0000.00817.90
8.2.50.0000.00818.10
8.2.40.0060.00620.49
8.2.30.0000.00720.56
8.2.20.0040.00417.68
8.2.10.0070.00017.93
8.2.00.0070.00017.99
8.1.280.0080.00825.92
8.1.270.0060.00322.10
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0050.00523.83
8.1.230.0080.00419.23
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.22
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0040.00418.43
8.1.160.0000.00720.68
8.1.150.0000.00718.71
8.1.140.0040.00419.50
8.1.130.0030.00317.51
8.1.120.0030.00417.35
8.1.110.0040.00417.39
8.1.100.0060.00317.25
8.1.90.0040.00417.30
8.1.80.0000.00717.29
8.1.70.0060.00317.30
8.1.60.0050.00217.49
8.1.50.0000.00917.28
8.1.40.0000.00817.35
8.1.30.0080.00017.48
8.1.20.0080.00017.53
8.1.10.0000.00817.53
8.1.00.0000.00817.42
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0000.00718.29
8.0.270.0070.00017.06
8.0.260.0050.00217.23
8.0.250.0070.00016.92
8.0.240.0060.00616.92
8.0.230.0000.00716.84
8.0.220.0000.00716.87
8.0.210.0000.00616.79
8.0.200.0030.00316.97
8.0.190.0050.00316.84
8.0.180.0070.00016.90
8.0.170.0070.00016.90
8.0.160.0030.00316.91
8.0.150.0030.00316.85
8.0.140.0040.00316.83
8.0.130.0020.00513.38
8.0.120.0050.00316.88
8.0.110.0080.00016.78
8.0.100.0080.00016.77
8.0.90.0080.00016.76
8.0.80.0060.00916.83
8.0.70.0050.00216.83
8.0.60.0030.00316.71
8.0.50.0000.00916.90
8.0.30.0120.00916.96
8.0.20.0120.00617.40
8.0.10.0040.00416.84
8.0.00.0140.00516.73
7.4.330.0020.00216.66
7.4.320.0040.00416.52
7.4.300.0000.00616.43
7.4.290.0030.00316.48
7.4.280.0080.00316.48
7.4.270.0050.00516.46
7.4.260.0000.00816.35
7.4.250.0040.00416.39
7.4.240.0050.00216.46
7.4.230.0000.00816.34
7.4.220.0160.01016.36
7.4.210.0080.00716.49
7.4.200.0000.00716.28
7.4.160.0070.01016.52
7.4.150.0090.00817.40
7.4.140.0110.01217.86
7.4.130.0180.00216.48
7.4.120.0030.01716.51
7.4.110.0130.00316.34
7.4.100.0120.00616.56
7.4.90.0080.00816.38
7.4.80.0120.00819.39
7.4.70.0080.00816.51
7.4.60.0130.00316.55
7.4.50.0040.00816.27
7.4.40.0100.00716.34
7.4.30.0080.01416.38
7.4.00.0140.00014.94
7.3.330.0050.00013.13
7.3.320.0070.00013.01
7.3.310.0000.00716.15
7.3.300.0030.00316.29
7.3.290.0000.00716.16
7.3.280.0080.00916.18
7.3.270.0070.01017.40
7.3.260.0100.00716.41
7.3.250.0100.00816.35
7.3.240.0080.01116.33
7.3.230.0100.00616.42
7.3.210.0100.00716.39
7.3.200.0140.00419.39
7.3.190.0080.01116.32
7.3.180.0110.00516.44
7.3.170.0140.00716.35
7.3.160.0030.01316.20
7.3.10.0040.00916.38
7.3.00.0020.01016.47
7.2.330.0120.00616.28
7.2.320.0060.01116.32
7.2.310.0130.01016.47
7.2.300.0060.01216.31
7.2.290.0080.00816.60
7.2.130.0030.00916.67
7.2.120.0050.00816.70
7.2.110.0040.00816.62
7.2.100.0080.00516.61
7.2.90.0060.00616.65
7.2.80.0030.01216.74
7.2.70.0050.00716.59
7.2.60.0030.00916.68
7.2.50.0090.00416.72
7.2.40.0070.00716.75
7.2.30.0050.00616.84
7.2.20.0070.00716.69
7.2.10.0060.00616.72
7.2.00.0050.00617.33
7.1.250.0040.00915.58
7.1.240.0010.01115.50
7.1.230.0080.00715.57
7.1.220.0050.01015.54
7.1.210.0050.00915.54
7.1.200.0030.00715.54
7.1.190.0030.00815.57
7.1.180.0060.00515.51
7.1.170.0080.00515.59
7.1.160.0030.00815.42
7.1.150.0070.00315.49
7.1.140.0050.00915.50
7.1.130.0060.00215.66
7.1.120.0050.00815.50
7.1.110.0050.00715.61
7.1.100.0040.00616.36
7.1.90.0060.01015.61
7.1.80.0020.01315.61
7.1.70.0050.00816.11
7.1.60.0070.00616.66
7.1.50.0110.00716.02
7.1.40.0080.00515.64
7.1.30.0030.01015.60
7.1.20.0020.00915.47
7.1.10.0080.00515.54
7.1.00.0060.02817.84
7.0.330.0020.01115.15
7.0.320.0050.00515.14
7.0.310.0020.00915.23
7.0.300.0020.00815.26
7.0.290.0030.00815.27
7.0.280.0050.00815.22
7.0.270.0030.00515.08
7.0.260.0070.00615.09
7.0.250.0080.00515.24
7.0.240.0050.00915.21
7.0.230.0050.01015.18
7.0.220.0060.00815.20
7.0.210.0060.00815.06
7.0.200.0100.00315.06
7.0.190.0040.00915.32
7.0.180.0090.00215.22
7.0.170.0010.01115.22
7.0.160.0090.00615.30
7.0.150.0060.00615.01
7.0.140.0030.01015.10
7.0.130.0070.00315.15
7.0.120.0070.00615.21
7.0.110.0060.00815.16
7.0.100.0080.00515.27
7.0.90.0120.00315.42
7.0.80.0070.00515.17
7.0.70.0040.00915.16
7.0.60.0050.03017.24
7.0.50.0040.01816.01
7.0.40.0090.02815.59
7.0.30.0090.03615.64
7.0.20.0090.01815.54
7.0.10.0070.03415.50
7.0.00.0080.03215.50
5.6.380.0080.00714.20
5.6.370.0090.00114.23
5.6.360.0060.00614.14
5.6.350.0040.01014.14
5.6.340.0050.00614.19
5.6.330.0030.01214.13
5.6.320.0040.00914.00
5.6.310.0060.00814.06
5.6.300.0090.00314.14
5.6.290.0020.00914.21
5.6.280.0080.01216.39
5.6.270.0070.00314.12
5.6.260.0020.01514.27
5.6.250.0080.00514.18
5.6.240.0070.00714.07
5.6.230.0080.00614.24
5.6.220.0030.01014.27
5.6.210.0060.02916.31
5.6.200.0070.02115.46
5.6.190.0060.01916.30
5.6.180.0100.02116.18
5.6.170.0170.02016.13
5.6.160.0040.03216.25
5.6.150.0070.03115.49
5.6.140.0030.02315.62
5.6.130.0120.02015.46
5.6.120.0080.02816.36
5.6.110.0070.02816.38
5.6.100.0100.02416.37
5.6.90.0070.03316.49
5.6.80.0090.02616.16
5.6.70.0050.00513.98
5.6.60.0040.00713.99
5.6.50.0050.00714.01
5.6.40.0050.00813.92
5.6.30.0070.00814.00
5.6.20.0050.00614.00
5.6.10.0090.00514.00
5.6.00.0080.00613.90
5.5.380.0060.00211.25
5.5.370.0000.01011.29
5.5.360.0030.00911.28
5.5.350.0160.02514.31
5.5.340.0030.03013.50
5.5.330.0060.02214.17
5.5.320.0170.02314.27
5.5.310.0110.02914.24
5.5.300.0060.02813.46
5.5.290.0010.02813.52
5.5.280.0030.03114.46
5.5.270.0060.02014.46
5.5.260.0070.03014.36
5.5.250.0050.01714.29
5.5.240.0050.02814.16
5.5.230.0060.00511.21
5.5.220.0050.00211.18
5.5.210.0050.00511.26
5.5.200.0050.00311.08
5.5.190.0020.00911.05
5.5.180.0050.00611.17
5.5.170.0050.00611.23
5.5.160.0020.00611.24
5.5.150.0020.00511.10
5.5.140.0060.00411.21
5.5.130.0030.00511.21
5.5.120.0070.00511.28
5.5.110.0060.00411.20
5.5.100.0060.00511.20
5.5.90.0060.00511.20
5.5.80.0060.00411.24
5.5.70.0050.00511.23
5.5.60.0040.00711.21
5.5.50.0050.00511.24
5.5.40.0030.00511.28
5.5.30.0020.00911.26
5.5.20.0050.00311.13
5.5.10.0050.00611.06
5.5.00.0030.00711.18

preferences:
53.61 ms | 401 KiB | 5 Q