3v4l.org

run code in 300+ PHP versions simultaneously
<?php $intColumnValue = 5; $stringColumnValue = "asds"; $stringColumnValueWithQuotes = "asds \"test\" sdfg"; $jsonValue = [ 'number' => 7.8, 'string' => 'aqsdsdw', 'bool' => true, 'stringWithQuotes' => 'test1 "test2" test3', ]; $jsonColumnValue = json_encode($jsonValue); $csvRow = [$intColumnValue, $stringColumnValue, $stringColumnValueWithQuotes, $jsonColumnValue]; fputcsv(STDOUT, $csvRow);

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.0180.00318.31
8.3.50.0170.00018.35
8.3.40.0160.00018.53
8.3.30.0070.00718.54
8.3.20.0070.00021.73
8.3.10.0040.00421.73
8.3.00.0040.00420.95
8.2.180.0070.01018.29
8.2.170.0110.00422.96
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0040.00724.66
8.2.130.0050.00321.05
8.2.120.0050.00326.35
8.2.110.0100.00019.24
8.2.100.0030.00917.72
8.2.90.0040.00418.16
8.2.80.0080.00017.97
8.2.70.0040.00417.80
8.2.60.0000.00818.03
8.2.50.0050.00318.10
8.2.40.0050.00319.14
8.2.30.0040.00419.30
8.2.20.0040.00417.93
8.2.10.0070.00018.01
8.2.00.0000.00918.14
8.1.280.0030.01025.92
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00322.50
8.1.230.0090.00320.78
8.1.220.0060.00317.78
8.1.210.0060.00318.96
8.1.200.0000.00917.25
8.1.190.0050.00317.00
8.1.180.0040.00418.10
8.1.170.0040.00418.44
8.1.160.0040.00418.83
8.1.150.0000.00718.89
8.1.140.0040.00417.70
8.1.130.0050.00318.92
8.1.120.0040.00417.48
8.1.110.0040.00417.36
8.1.100.0030.00417.47
8.1.90.0050.00517.34
8.1.80.0050.00317.35
8.1.70.0030.00517.44
8.1.60.0000.00817.63
8.1.50.0000.00817.46
8.1.40.0000.00817.48
8.1.30.0040.00417.67
8.1.20.0000.00717.67
8.1.10.0000.00917.53
8.1.00.0030.00617.39
8.0.300.0000.00719.90
8.0.290.0000.00816.63
8.0.280.0040.00418.43
8.0.270.0050.00317.13
8.0.260.0080.00017.10
8.0.250.0070.00016.94
8.0.240.0070.00016.89
8.0.230.0000.00717.01
8.0.220.0030.00316.88
8.0.210.0030.00316.78
8.0.200.0060.00016.97
8.0.190.0030.00516.78
8.0.180.0000.00816.90
8.0.170.0080.00016.96
8.0.160.0000.00716.88
8.0.150.0040.00416.83
8.0.140.0050.00516.81
8.0.130.0050.00013.36
8.0.120.0020.00516.84
8.0.110.0000.00816.79
8.0.100.0000.00816.77
8.0.90.0040.00416.91
8.0.80.0030.01116.84
8.0.70.0030.00516.71
8.0.60.0000.00816.90
8.0.50.0040.00416.93
8.0.30.0110.00717.13
8.0.20.0160.00617.40
8.0.10.0040.00416.98
8.0.00.0100.01016.92
7.4.330.0030.00315.55
7.4.320.0060.00016.59
7.4.300.0030.00316.41
7.4.290.0040.00416.62
7.4.280.0000.00816.59
7.4.270.0000.01016.59
7.4.260.0030.00716.59
7.4.250.0040.00416.57
7.4.240.0000.00716.59
7.4.230.0000.00716.59
7.4.220.0000.00716.58
7.4.210.0080.00916.60
7.4.200.0000.00716.50
7.4.160.0110.00516.52
7.4.140.0090.01117.86
7.4.130.0100.00716.65
7.4.120.0080.00916.47
7.4.110.0070.01016.55
7.4.100.0070.01016.55
7.4.90.0140.00316.57
7.4.80.0160.00619.39
7.4.70.0110.01116.77
7.4.60.0060.01016.47
7.4.50.0130.00316.40
7.4.40.0120.00916.41
7.4.00.0080.00815.13
7.3.330.0040.00413.07
7.3.320.0000.00613.11
7.3.310.0070.00016.14
7.3.300.0000.00716.18
7.3.290.0030.00316.10
7.3.280.0090.01016.15
7.3.260.0110.01116.48
7.3.240.0110.00916.30
7.3.230.0090.01416.22
7.3.210.0030.01316.26
7.3.200.0140.00916.21
7.3.190.0160.00616.43
7.3.180.0030.01216.31
7.3.170.0050.01116.32
7.3.160.0140.00716.41
7.3.120.0060.01014.74
7.3.110.0060.00614.63
7.3.100.0120.00314.70
7.3.90.0040.00714.83
7.3.80.0030.00914.70
7.3.70.0040.01114.49
7.3.60.0030.01214.77
7.3.50.0110.00014.80
7.3.40.0000.01614.55
7.3.30.0000.01414.48
7.3.20.0040.01116.59
7.3.10.0040.01116.34
7.3.00.0030.01316.58
7.2.330.0130.00416.52
7.2.320.0070.01016.58
7.2.310.0090.00916.61
7.2.300.0090.01216.57
7.2.290.0130.01016.40
7.2.240.0030.01414.66
7.2.230.0030.01015.15
7.2.220.0000.01615.25
7.2.210.0000.01415.14
7.2.200.0070.00715.00
7.2.190.0070.01015.05
7.2.180.0000.01714.94
7.2.170.0000.01515.03
7.2.160.0030.01014.94
7.2.150.0040.00816.66
7.2.140.0090.00616.75
7.2.130.0100.00716.59
7.2.120.0030.00916.70
7.2.110.0040.01116.87
7.2.100.0100.00717.00
7.2.90.0060.00617.00
7.2.80.0120.00416.95
7.2.70.0060.00916.99
7.2.60.0100.00816.79
7.2.50.0040.01117.00
7.2.40.0310.01117.26
7.2.30.0420.01117.49
7.2.20.0580.00917.36
7.2.10.0450.00917.35
7.2.00.0390.01117.50
7.1.330.0090.00615.82
7.1.320.0090.00315.95
7.1.310.0090.00315.68
7.1.300.0030.01415.73
7.1.290.0030.01015.80
7.1.280.0060.00915.79
7.1.270.0070.00715.67
7.1.260.0070.01015.69
7.1.250.0080.00415.83
7.1.200.0090.00615.48
7.1.160.0730.01016.51
7.1.150.1210.00916.70
7.1.140.0840.01116.98
7.1.130.0830.00916.92
7.1.120.0780.00916.52
7.1.110.0740.01016.18
7.1.100.0900.01116.11
7.1.90.0690.00816.50
7.1.80.0780.00816.20
7.1.70.0940.01115.02
7.1.60.1330.01333.17
7.1.50.0810.01432.65
7.1.40.0850.01132.61
7.1.30.1020.01632.59
7.1.20.0870.01132.79
7.1.10.1370.01314.71
7.1.00.0990.00814.75

preferences:
63.62 ms | 401 KiB | 5 Q