3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ["23",3,4]; array_walk($a, 'intval'); echo json_encode($a); $a = array_map('intval', $a); echo json_encode($a);

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.0070.00718.80
8.3.30.0040.01118.72
8.3.20.0040.00420.36
8.3.10.0030.00621.96
8.3.00.0050.00319.25
8.2.170.0040.01122.96
8.2.160.0100.00320.58
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00419.27
8.2.120.0040.00426.35
8.2.110.0100.00019.36
8.2.100.0060.00618.22
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0040.00417.93
8.2.50.0080.00018.10
8.2.40.0030.00520.20
8.2.30.0030.00621.02
8.2.20.0000.00718.07
8.2.10.0000.00818.16
8.2.00.0090.00017.96
8.1.270.0070.00022.03
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.46
8.1.230.0090.00617.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0000.00918.96
8.1.160.0040.00419.05
8.1.150.0030.00620.52
8.1.140.0030.00619.51
8.1.130.0070.00018.86
8.1.120.0000.00717.41
8.1.110.0040.00717.27
8.1.100.0070.00017.36
8.1.90.0050.00317.41
8.1.80.0070.00017.36
8.1.70.0050.00217.43
8.1.60.0040.00417.52
8.1.50.0040.00417.43
8.1.40.0070.00017.32
8.1.30.0050.00317.48
8.1.20.0040.00417.50
8.1.10.0040.00417.46
8.1.00.0030.00617.40
8.0.300.0000.00718.77
8.0.290.0030.00616.75
8.0.280.0030.00318.31
8.0.270.0070.00017.18
8.0.260.0000.00816.72
8.0.250.0000.00616.92
8.0.240.0030.00616.94
8.0.230.0000.00716.83
8.0.220.0060.00016.79
8.0.210.0070.00016.87
8.0.200.0000.00616.87
8.0.190.0000.00816.76
8.0.180.0030.00516.81
8.0.170.0000.00716.88
8.0.160.0000.00716.82
8.0.150.0030.00516.73
8.0.140.0000.00716.84
8.0.130.0060.00013.24
8.0.120.0050.00416.77
8.0.110.0070.00016.89
8.0.100.0040.00416.86
8.0.90.0000.00716.89
8.0.80.0000.01616.89
8.0.70.0040.00416.72
8.0.60.0000.00816.82
8.0.50.0050.00316.71
8.0.30.0120.00716.90
8.0.20.0100.00917.40
8.0.10.0040.00416.90
8.0.00.0070.01016.71
7.4.330.0000.00715.55
7.4.320.0000.00616.41
7.4.300.0050.00216.45
7.4.290.0050.00316.46
7.4.280.0000.00816.42
7.4.270.0060.00016.59
7.4.260.0070.00016.45
7.4.250.0030.00316.58
7.4.240.0070.00016.44
7.4.230.0030.00316.61
7.4.220.0160.01016.47
7.4.210.0040.01116.56
7.4.200.0040.00416.35
7.4.160.0050.01116.49
7.4.150.0120.00617.40
7.4.140.0100.01017.86
7.4.130.0130.01316.50
7.4.120.0110.01116.50
7.4.110.0000.01716.48
7.4.100.0140.00316.29
7.4.90.0110.00716.39
7.4.80.0130.00319.39
7.4.70.0070.01016.47
7.4.60.0070.01016.55
7.4.50.0030.01016.21
7.4.40.0060.00916.60
7.4.30.0060.00916.33
7.4.00.0110.00715.15
7.3.330.0000.00513.04
7.3.320.0030.00312.97
7.3.310.0070.00016.06
7.3.300.0060.00015.97
7.3.290.0080.00716.17
7.3.280.0090.00816.12
7.3.270.0100.00617.40
7.3.260.0170.00516.39
7.3.250.0090.00816.35
7.3.240.0090.00916.12
7.3.230.0140.00316.16
7.3.210.0130.00316.17
7.3.200.0090.00816.12
7.3.190.0040.01216.41
7.3.180.0090.00616.19
7.3.170.0030.01416.20
7.3.160.0120.00316.15
7.3.10.0040.01116.72
7.3.00.0030.01316.59
7.2.330.0090.01516.25
7.2.320.0060.01016.44
7.2.310.0060.01016.42
7.2.300.0060.01216.37
7.2.290.0100.00816.56
7.2.130.0030.01016.79
7.2.120.0070.01016.87
7.2.110.0030.00616.79
7.2.100.0070.00716.80
7.2.90.0120.00715.76
7.2.80.0460.01115.75
7.2.70.0580.00715.76
7.2.60.0490.00915.76
7.2.50.0150.00515.78
7.2.40.0580.00515.94
7.2.30.0060.00916.02
7.2.20.0090.00415.56
7.2.10.0050.01015.88
7.2.00.0500.01015.78
7.1.250.0030.01215.47
7.1.210.0900.00713.76
7.1.200.0930.01013.55
7.1.190.0920.00813.53
7.1.180.0920.01013.89
7.1.170.0450.00713.73
7.1.160.0990.00013.76
7.1.150.0100.00713.52
7.1.140.0690.00313.52
7.1.130.0140.00813.87
7.1.120.0100.00513.73
7.1.110.0130.00513.65
7.1.100.0190.01413.78
7.1.90.0700.00713.78
7.1.80.0640.00313.80
7.1.70.0910.00613.82
7.1.60.1310.00631.43
7.1.50.0230.02031.73
7.1.40.0400.00431.58
7.1.30.0400.01331.66
7.1.20.0990.01131.59
7.1.10.0540.01013.41
7.1.00.0080.00813.63
7.0.310.0930.00313.48
7.0.300.0440.00613.19
7.0.290.0100.00413.48
7.0.280.0090.00513.25
7.0.270.0790.01313.70
7.0.260.0890.00613.69
7.0.250.0310.00413.39
7.0.240.0780.00313.32
7.0.230.0270.00313.48
7.0.220.0780.00913.41
7.0.210.0660.00913.67
7.0.200.0880.00313.40
7.0.190.0840.00913.35
7.0.180.0260.01113.20
7.0.170.0730.00813.49
7.0.160.0370.01413.27
7.0.150.0340.00913.45
7.0.140.0110.00813.35
7.0.130.0220.00413.39
7.0.120.1020.00013.66
7.0.110.0250.00813.64
7.0.100.0160.00713.52
7.0.90.0530.01013.35
7.0.80.0760.00313.73
7.0.70.0540.00313.29
7.0.60.0100.01013.30
7.0.50.0150.00313.16
7.0.40.1330.00413.34
7.0.30.0630.00012.94
7.0.20.0220.00513.29
7.0.10.1510.00613.26
7.0.00.0600.00413.13

preferences:
42.26 ms | 400 KiB | 5 Q