3v4l.org

run code in 300+ PHP versions simultaneously
<?php $paragraphs = []; // create an empty array we will put our two paragraphs into // define your two paragraphs/text-items with everything that's unique to them: $paragraph = new stdClass(); // just creates a simple object we can fill with infos $paragraph->elementId = "dyn_Loop_main_v1"; // the id of the related html element $paragraph->updateTime = 1500; // how quick it should switch to next text in ms $paragraph->content = array("TEXT for ID_1_1", "TEXT for ID_1_2", "TEXT for ID_1_3", "TEXT for ID_1_4"); $paragraph->default = "Default Text 1"; $paragraph->counter = 0; $paragraphs[] = $paragraph; // add this paragraph to the array // same for the second paragraph: $paragraph = new stdClass(); $paragraph->elementId = "dyn_Loop_main_v2"; $paragraph->updateTime = 1000; $paragraph->content = array("TEXT for ID_2_1", "TEXT for ID_2_2", "TEXT for ID_2_3", "TEXT for ID_2_4"); $paragraph->default = "Default Text 2"; $paragraph->counter = 0; $paragraphs[] = $paragraph; // add this paragraph to the array echo json_encode($paragraphs, 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.4.120.0140.00524.08
8.4.110.0120.00718.76
8.4.100.0150.00717.80
8.4.90.0150.00520.35
8.4.80.0110.00919.06
8.4.70.0020.00619.11
8.4.60.0050.00419.16
8.4.50.0070.00920.42
8.4.40.0060.01319.60
8.4.30.0130.00617.52
8.4.20.0130.00620.41
8.4.10.0070.01117.78
8.3.250.0110.00818.96
8.3.240.0050.00317.37
8.3.230.0130.00618.04
8.3.220.0040.00518.72
8.3.210.0070.00718.34
8.3.200.0060.00316.48
8.3.190.0090.00917.36
8.3.180.0060.00416.48
8.3.170.0140.00417.00
8.3.160.0150.00320.66
8.3.150.0100.01018.93
8.3.140.0050.00319.09
8.3.130.0080.00018.26
8.3.120.0000.00920.97
8.3.110.0030.00616.48
8.3.100.0040.00416.50
8.3.90.0060.01226.77
8.3.80.0060.00316.75
8.3.70.0070.00716.73
8.3.60.0140.00418.30
8.3.50.0090.01018.06
8.3.40.0090.00618.67
8.3.30.0130.00318.72
8.3.20.0030.00619.34
8.3.10.0050.00321.73
8.3.00.0040.00420.64
8.2.290.0070.00620.52
8.2.280.0130.00718.55
8.2.270.0120.00616.95
8.2.260.0060.00318.36
8.2.250.0040.00417.36
8.2.240.0040.00417.32
8.2.230.0080.00020.94
8.2.220.0000.00837.54
8.2.210.0160.00326.77
8.2.200.0080.00416.50
8.2.190.0100.01016.63
8.2.180.0120.00618.54
8.2.170.0070.00722.96
8.2.160.0030.01022.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00319.82
8.2.120.0040.00426.35
8.2.110.0070.00322.13
8.2.100.0040.00817.85
8.2.90.0040.00418.34
8.2.80.0050.00319.15
8.2.70.0080.00018.04
8.2.60.0050.00318.16
8.2.50.0080.00018.10
8.2.40.0040.00419.52
8.2.30.0000.00719.25
8.2.20.0030.00518.14
8.2.10.0070.00018.16
8.2.00.0040.00417.60
8.1.330.0130.00621.67
8.1.320.0080.01017.84
8.1.310.0000.00818.54
8.1.300.0030.00520.11
8.1.290.0060.00330.84
8.1.280.0040.01225.92
8.1.270.0160.00323.90
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.05
8.1.230.0080.00320.84
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0030.00618.56
8.1.160.0000.00918.87
8.1.150.0040.00418.81
8.1.140.0040.00422.18
8.1.130.0070.00020.29
8.1.120.0000.00717.39
8.1.110.0040.00417.40
8.1.100.0040.00417.42
8.1.90.0060.00317.47
8.1.80.0050.00317.30
8.1.70.0070.00017.45
8.1.60.0030.00617.52
8.1.50.0030.00617.48
8.1.40.0030.00517.41
8.1.30.0040.00417.66
8.1.20.0040.00417.58
8.1.10.0030.00517.59
8.1.00.0050.00317.52
8.0.300.0040.00420.09
8.0.290.0070.00016.63
8.0.280.0060.00318.38
8.0.270.0000.00716.76
8.0.260.0000.00618.49
8.0.250.0000.00717.01
8.0.240.0030.00316.98
8.0.230.0040.00416.94
8.0.220.0020.00516.92
8.0.210.0050.00316.75
8.0.200.0030.00316.89
8.0.190.0000.00716.86
8.0.180.0000.00816.81
8.0.170.0040.00416.89
8.0.160.0040.00416.95
8.0.150.0000.00816.83
8.0.140.0000.00716.79
8.0.130.0030.00313.36
8.0.120.0050.00316.84
8.0.110.0030.00516.76
8.0.100.0020.00516.76
8.0.90.0040.00416.89
8.0.80.0140.00216.90
8.0.70.0030.00316.81
8.0.60.0070.00016.86
8.0.50.0100.00016.92
8.0.30.0100.00717.13
8.0.20.0100.01217.40
8.0.10.0030.00516.93
8.0.00.0120.00616.60
7.4.330.0030.00315.55
7.4.320.0040.00416.59
7.4.300.0060.00016.54
7.4.290.0030.00316.55
7.4.280.0090.00016.56
7.4.270.0030.00316.47
7.4.260.0060.00316.47
7.4.250.0080.00016.39
7.4.240.0030.00316.61
7.4.230.0070.00016.58
7.4.220.0050.00216.66
7.4.210.0100.00616.49
7.4.200.0030.00316.55
7.4.160.0080.01016.48
7.4.140.0090.00917.86
7.4.130.0110.00516.42
7.4.120.0070.01116.50
7.4.110.0100.00716.51
7.4.100.0140.00316.50
7.4.90.0090.01216.53
7.4.80.0060.01119.39
7.4.70.0070.01016.47
7.4.60.0060.01016.51
7.4.50.0060.00816.43
7.4.40.0060.01116.64
7.4.00.0050.01115.17
7.3.330.0030.00313.07
7.3.320.0000.00513.04
7.3.310.0030.00616.24
7.3.300.0040.00416.30
7.3.290.0030.00316.32
7.3.280.0090.00816.27
7.3.260.0140.00616.48
7.3.240.0090.00916.48
7.3.230.0030.01416.34
7.3.210.0030.01316.46
7.3.200.0110.00516.38
7.3.190.0060.01616.39
7.3.180.0130.00316.31
7.3.170.0190.00716.39
7.3.160.0080.00816.40
7.3.120.0090.00814.71
7.3.110.0050.01014.77
7.3.100.0080.00714.87
7.3.90.0060.00514.83
7.3.80.0070.00615.11
7.3.70.0030.01114.76
7.3.60.0090.00514.85
7.3.50.0050.00914.95
7.3.40.0130.00114.79
7.3.30.0050.00814.82
7.3.20.0050.00616.81
7.3.10.0080.00716.56
7.3.00.0030.01016.71
7.2.330.0100.00716.40
7.2.320.0140.00916.50
7.2.310.0110.01016.78
7.2.300.0130.00316.46
7.2.290.0110.00516.42
7.2.250.0050.01315.00
7.2.240.0070.01314.87
7.2.230.0070.00715.09
7.2.220.0020.01215.14
7.2.210.0040.01115.18
7.2.200.0020.01014.94
7.2.190.0030.00914.81
7.2.180.0090.00414.91
7.2.170.0080.00815.11
7.2.110.0630.00314.70
7.2.100.0280.00914.51
7.2.90.0570.01014.64
7.2.80.0610.00614.45
7.2.70.0870.01315.02
7.2.60.0620.01014.92
7.2.50.0690.00714.90
7.2.40.0710.00014.88
7.2.30.0670.01215.04
7.2.20.0720.00715.10
7.2.10.0950.01315.03
7.2.00.0690.00914.88
7.1.330.0040.01015.69
7.1.320.0070.00515.87
7.1.310.0050.00815.89
7.1.300.0070.00815.83
7.1.290.0030.00915.83
7.1.280.0100.00315.62
7.1.270.0130.00215.64
7.1.260.0040.01115.78
7.1.230.0620.00313.90
7.1.220.0600.00713.86
7.1.210.0710.00313.60
7.1.200.0600.00713.77
7.1.190.1140.01014.04
7.1.180.0670.00713.65
7.1.170.0710.00913.89
7.1.160.0600.01113.75
7.1.150.0550.01513.64
7.1.140.1030.00913.71
7.1.130.1000.00613.89
7.1.120.0660.00714.06
7.1.110.0710.01113.88
7.1.100.1230.00613.82
7.1.90.0740.00713.64
7.1.80.0680.01013.85
7.1.70.0920.00313.74
7.1.60.1340.00331.88
7.1.50.1190.00731.73
7.1.40.1180.00731.90
7.1.30.1120.01531.72
7.1.20.1130.00331.73
7.1.10.0960.01013.74
7.1.00.0700.00713.96
5.6.380.0070.00714.38

preferences:
28.96 ms | 403 KiB | 5 Q