3v4l.org

run code in 300+ PHP versions simultaneously
<?php $infos = [ [ 'activity_type' => 'Professions Libérales', 'speciality' => [ [ 'name' => 'K1', 'position' => 0, ], [ 'name' => 'F1', 'position' => 10, ], [ 'name' => 'K4', 'position' => 20, ], [ 'name' => 'C2', 'position' => 30, ], ] ], [ 'activity_type' => 'Hôpitaux', 'speciality' => [ [ 'name' => 'K1', 'position' => 0, ], [ 'name' => 'F1', 'position' => 10, ], [ 'name' => 'K4', 'position' => 20, ], [ 'name' => 'C2', 'position' => 30, ], ] ] ]; echo json_encode($infos, JSON_PRETTY_PRINT);

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.0090.00918.55
8.3.50.0130.00317.95
8.3.40.0120.00618.55
8.3.30.0090.00618.45
8.3.20.0100.00018.59
8.3.10.0090.00021.74
8.3.00.0040.00420.43
8.2.180.0170.00318.16
8.2.170.0110.00422.96
8.2.160.0100.01019.29
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0090.00019.82
8.2.120.0040.00426.35
8.2.110.0060.00321.03
8.2.100.0080.00419.54
8.2.90.0000.00817.63
8.2.80.0080.00017.97
8.2.70.0040.00417.80
8.2.60.0000.00718.03
8.2.50.0040.00418.10
8.2.40.0040.00419.45
8.2.30.0050.00219.27
8.2.20.0070.00018.16
8.2.10.0070.00017.87
8.2.00.0060.00317.50
8.1.280.0040.01525.92
8.1.270.0040.00418.70
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0050.00520.72
8.1.230.0040.00717.70
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0000.00818.85
8.1.150.0030.00518.84
8.1.140.0050.00222.16
8.1.130.0000.00720.09
8.1.120.0000.00717.37
8.1.110.0080.00017.37
8.1.100.0000.00717.35
8.1.90.0080.00017.36
8.1.80.0000.00717.36
8.1.70.0000.00717.38
8.1.60.0080.00017.49
8.1.50.0040.00417.38
8.1.40.0000.00817.33
8.1.30.0040.00417.46
8.1.20.0070.00017.50
8.1.10.0040.00417.56
8.1.00.0000.00817.44
8.0.300.0050.00218.77
8.0.290.0000.01016.75
8.0.280.0000.00718.43
8.0.270.0040.00417.29
8.0.260.0030.00518.32
8.0.250.0000.00716.98
8.0.240.0060.00016.92
8.0.230.0050.00316.86
8.0.220.0050.00216.85
8.0.210.0000.00616.69
8.0.200.0040.00416.88
8.0.190.0040.00416.86
8.0.180.0040.00416.89
8.0.170.0050.00316.83
8.0.160.0050.00516.83
8.0.150.0000.00716.78
8.0.140.0070.00016.68
8.0.130.0080.00013.23
8.0.120.0080.00016.77
8.0.110.0070.00316.75
8.0.100.0080.00016.60
8.0.90.0070.00016.82
8.0.80.0120.00616.77
8.0.70.0040.00416.75
8.0.60.0040.00416.78
8.0.50.0050.00216.67
8.0.30.0130.00716.95
8.0.20.0140.00917.40
8.0.10.0000.00716.88
8.0.00.0110.00716.59
7.4.330.0000.00615.55
7.4.320.0000.00616.44
7.4.300.0000.00816.42
7.4.290.0000.00716.49
7.4.280.0080.00016.40
7.4.270.0030.00316.43
7.4.260.0030.00316.47
7.4.250.0040.00416.38
7.4.240.0040.00416.45
7.4.230.0030.00316.50
7.4.220.0000.00716.51
7.4.210.0130.00816.42
7.4.200.0000.00616.42
7.4.160.0080.01016.42
7.4.140.0060.01017.86
7.4.130.0090.00916.35
7.4.120.0100.00816.45
7.4.110.0060.01216.40
7.4.100.0170.00016.39
7.4.90.0090.01016.31
7.4.80.0100.01219.39
7.4.70.0060.01916.40
7.4.60.0030.01316.46
7.4.50.0040.01216.50
7.4.40.0090.00916.54
7.4.10.0070.01315.16
7.4.00.0070.01114.81
7.3.330.0000.00612.87
7.3.320.0050.00013.04
7.3.310.0030.00615.98
7.3.300.0030.00316.17
7.3.290.0000.00716.12
7.3.280.0110.00316.16
7.3.260.0050.01416.40
7.3.240.0070.01016.30
7.3.230.0060.01216.30
7.3.210.0040.01416.14
7.3.200.0070.01016.17
7.3.190.0150.00616.14
7.3.180.0080.00816.50
7.3.170.0100.00715.94
7.3.160.0030.01316.21
7.3.130.0080.00814.68
7.3.120.0100.00714.79
7.3.110.0040.01514.88
7.3.100.0040.01114.72
7.3.90.0100.00714.60
7.3.80.0120.00314.68
7.3.70.0030.01014.68
7.3.60.0040.01514.67
7.3.50.0040.01014.46
7.3.40.0070.00714.72
7.3.30.0060.00614.80
7.3.20.0080.00816.31
7.3.10.0010.01216.54
7.3.00.0060.00616.32
7.2.330.0130.00416.58
7.2.320.0090.00916.25
7.2.310.0120.00416.37
7.2.300.0110.01116.43
7.2.290.0070.01416.51
7.2.260.0030.01714.88
7.2.250.0070.01014.59
7.2.240.0090.00614.86
7.2.230.0040.01114.84
7.2.220.0060.00914.96
7.2.210.0040.01115.10
7.2.200.0100.01014.89
7.2.190.0030.01215.01
7.2.180.0110.00414.86
7.2.170.0060.00914.83
7.2.160.0000.01414.61
7.2.150.0040.00816.84
7.2.140.0000.01316.93
7.2.130.0030.01116.75
7.2.120.0050.00916.66
7.2.110.0100.00516.02
7.2.100.0100.00716.06
7.2.90.0100.00815.93
7.2.80.0060.00815.92
7.2.70.0080.00716.10
7.2.60.0090.00915.87
7.2.50.0060.00916.02
7.2.40.0120.00616.11
7.2.30.0100.00516.18
7.2.20.0080.00916.14
7.2.10.0120.00416.09
7.2.00.0090.00816.15
7.1.330.0070.00715.63
7.1.320.0070.00415.75
7.1.310.0030.00715.86
7.1.300.0120.00615.63
7.1.290.0030.01315.74
7.1.280.0030.00615.83
7.1.270.0040.00915.89
7.1.260.0070.00715.75
7.1.250.0020.01115.82
7.1.240.0060.00915.50
7.1.230.0110.00614.50
7.1.220.0090.00714.64
7.1.210.0110.00714.79
7.1.200.0110.00714.83
7.1.190.0120.00414.62
7.1.180.0090.01014.48
7.1.170.0100.00514.51
7.1.160.0090.00514.63
7.1.150.0080.00714.60
7.1.140.0130.00514.52
7.1.130.0120.00314.91
7.1.120.0070.01214.71
7.1.110.0140.00514.69
7.1.100.0120.00514.45
7.1.90.0130.00414.70
7.1.80.0110.00714.85
7.1.70.0080.01114.36
7.1.60.0190.01223.56
7.1.50.0240.00723.58
7.1.40.0170.01223.55
7.1.30.0170.01323.38
7.1.20.0150.00923.70
7.1.10.0120.00614.63
7.1.00.0130.00814.72
7.0.330.0070.00715.21
7.0.320.0000.01115.05
7.0.310.0070.00415.12
7.0.300.0070.00415.38
7.0.290.0090.00615.31
7.0.280.0030.01015.39
7.0.270.0060.00615.05
7.0.260.0000.01115.40
7.0.250.0000.00915.30
7.0.240.0090.00315.41
7.0.230.0070.00715.37
7.0.220.0070.00715.27
7.0.210.0090.00315.19
7.0.200.0030.00615.23
7.0.190.0040.00415.28
7.0.180.0060.00615.36
7.0.170.0040.01115.36
7.0.160.0050.00315.12
7.0.150.0060.00615.27
7.0.140.0060.00315.38
7.0.130.0040.00415.24
7.0.120.0030.01015.34
7.0.110.0000.01115.48
7.0.100.0040.00815.26
7.0.90.0060.00615.41
7.0.80.0030.01215.51
7.0.70.0070.00315.49
7.0.60.0100.00315.06
7.0.50.0000.01115.52
7.0.40.0100.00313.29
7.0.30.0000.01013.38
7.0.20.0060.00613.31
7.0.10.0060.00313.56
7.0.00.0070.00713.17
5.6.400.0080.00514.55
5.6.390.0030.01014.60
5.6.380.0030.00914.27
5.6.370.0040.00413.99
5.6.360.0060.00614.65
5.6.350.0120.00314.56
5.6.340.0030.00614.47
5.6.330.0000.01514.41
5.6.320.0070.00314.17
5.6.310.0060.00914.37
5.6.300.0030.00913.92
5.6.290.0060.00614.46
5.6.280.0000.01414.50
5.6.270.0090.00614.44
5.6.260.0040.01114.15
5.6.250.0000.01314.54
5.6.240.0000.01414.54
5.6.230.0060.01014.25
5.6.220.0030.00914.40
5.6.210.0030.00714.47
5.6.200.0130.00314.03
5.6.190.0000.01414.10
5.6.180.0070.00314.41
5.6.170.0000.01614.14
5.6.160.0060.00914.34
5.6.150.0040.00414.04
5.6.140.0060.00614.31
5.6.130.0040.00714.18
5.6.120.0110.00414.16
5.6.110.0040.01114.11
5.6.100.0030.00714.04
5.6.90.0000.01313.96
5.6.80.0060.00314.28
5.6.70.0070.00714.14
5.6.60.0060.00914.27
5.6.50.0120.00014.50
5.6.40.0030.00514.36
5.6.30.0000.01514.02
5.6.20.0130.00014.41
5.6.10.0040.01114.36
5.6.00.0090.00614.13

preferences:
63.18 ms | 400 KiB | 5 Q