3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mesg_key = ftok(__FILE__, 'm'); $mesg_id = msg_get_queue($mesg_key, 0666); function fetchMessage($mesg_id){ if(!is_resource($mesg_id)){ print_r("Mesg Queue is not Ready"); } if(msg_receive($mesg_id, 0, $mesg_type, 1024, $mesg, false, MSG_IPC_NOWAIT)){ print_r("Process got a new incoming MSG: $mesg "); } } register_tick_function("fetchMessage", $mesg_id); declare(ticks=2){ $i = 0; while(++$i < 100){ if($i%5 == 0){ msg_send($mesg_id, 1, "Hi: Now Index is :". $i); } } }

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.00418.56
8.3.50.0150.00321.08
8.3.40.0110.00318.67
8.3.30.0000.01418.70
8.3.20.0040.00418.77
8.3.10.0050.00320.48
8.3.00.0000.00823.65
8.2.180.0110.01116.63
8.2.170.0120.00322.96
8.2.160.0070.01020.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0090.00026.16
8.2.120.0040.00419.48
8.2.110.0070.00321.03
8.2.100.0110.00017.91
8.2.90.0050.00319.25
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0050.00317.93
8.2.50.0000.00918.07
8.2.40.0040.00418.09
8.2.30.0000.00819.68
8.2.20.0050.00217.79
8.2.10.0040.00417.58
8.2.00.0080.00017.68
8.1.280.0110.00725.92
8.1.270.0060.00323.99
8.1.260.0090.00926.35
8.1.250.0080.00028.09
8.1.240.0070.01022.41
8.1.230.0040.00720.88
8.1.220.0040.00418.77
8.1.210.0050.00318.87
8.1.200.0080.00317.34
8.1.190.0040.00417.51
8.1.180.0080.00018.10
8.1.170.0000.00818.49
8.1.160.0040.00418.85
8.1.150.0040.00418.60
8.1.140.0000.00817.29
8.1.130.0030.00317.81
8.1.120.0030.00517.47
8.1.110.0030.00617.33
8.1.100.0040.00417.39
8.1.90.0000.00717.32
8.1.80.0000.00717.31
8.1.70.0000.00717.33
8.1.60.0030.00617.57
8.1.50.0030.00517.50
8.1.40.0050.00217.48
8.1.30.0030.00617.67
8.1.20.0000.00817.59
8.1.10.0030.00517.50
8.1.00.0000.00717.58
8.0.300.0050.00519.80
8.0.290.0050.00316.75
8.0.280.0030.00318.41
8.0.270.0040.00417.27
8.0.260.0030.00616.83
8.0.250.0000.00816.98
8.0.240.0080.00016.94
8.0.230.0000.00816.93
8.0.220.0040.00416.97
8.0.210.0000.00716.81
8.0.200.0040.00416.91
8.0.190.0000.00716.98
8.0.180.0040.00416.98
8.0.170.0040.00416.82
8.0.160.0040.00416.94
8.0.150.0000.00816.80
8.0.140.0000.00816.79
8.0.130.0000.00513.40
8.0.120.0080.00016.87
8.0.110.0000.00716.95
8.0.100.0000.00716.75
8.0.90.0050.00216.96
8.0.80.0040.01716.98
8.0.70.0040.00416.82
8.0.60.0000.00816.79
8.0.50.0050.00316.89
8.0.30.0110.00817.11
8.0.20.0140.00817.40
8.0.10.0000.00816.88
8.0.00.0070.01116.77
7.4.330.0030.00314.65
7.4.320.0000.00716.38
7.4.300.0000.00716.62
7.4.290.0050.00216.55
7.4.280.0090.00016.57
7.4.270.0070.00016.55
7.4.260.0030.00313.34
7.4.250.0060.00316.50
7.4.240.0040.00416.64
7.4.230.0000.00716.44
7.4.220.0060.01016.68
7.4.210.0050.00916.62
7.4.200.0030.00616.71
7.4.190.0000.00716.43
7.4.160.0060.00916.36
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0120.00616.55
7.4.120.0110.00716.66
7.4.110.0030.01316.51
7.4.100.0140.00416.62
7.4.90.0070.01116.34
7.4.80.0160.00619.04
7.4.70.0090.00916.50
7.4.60.0070.01016.55
7.4.50.0040.00416.45
7.4.40.0040.01422.27
7.4.30.0130.00616.43
7.4.10.0080.00815.20
7.4.00.0080.00814.87
7.3.330.0030.00313.15
7.3.320.0000.00513.12
7.3.310.0030.00316.32
7.3.300.0040.00416.18
7.3.290.0060.01216.27
7.3.280.0070.00916.28
7.3.270.0030.01417.40
7.3.260.0090.01418.24
7.3.250.0090.00916.42
7.3.240.0100.01116.63
7.3.230.0140.00316.39
7.3.210.0130.00616.41
7.3.200.0140.00819.39
7.3.190.0090.00616.32
7.3.180.0030.01316.27
7.3.170.0090.00616.30
7.3.160.0060.01016.41
7.3.130.0060.01314.76
7.3.120.0040.01314.79
7.3.110.0030.01414.93
7.3.100.0080.00714.80
7.3.90.0030.01114.78
7.3.80.0050.00714.92
7.3.70.0080.00814.81
7.3.60.0060.00714.83
7.3.50.0050.00814.69
7.3.40.0070.00514.62
7.3.30.0070.00614.80
7.3.20.0110.00216.43
7.3.10.0020.01016.56
7.3.00.0080.00816.67
7.2.330.0100.01316.40
7.2.320.0130.00316.45
7.2.310.0040.01516.53
7.2.300.0090.00816.36
7.2.290.0050.01116.61
7.2.260.0130.00715.14
7.2.250.0090.01015.13
7.2.240.0050.01215.01
7.2.230.0050.01015.14
7.2.220.0060.00514.96
7.2.210.0080.00715.12
7.2.200.0070.00914.96
7.2.190.0020.01214.97
7.2.180.0060.00614.95
7.2.170.0070.00715.01
7.2.160.0090.00915.00
7.2.150.0110.00716.74
7.2.140.0040.01616.88
7.2.130.0090.00316.92
7.2.120.0070.00716.84
7.2.110.0130.00316.91
7.2.100.0110.00416.89
7.2.90.0060.01016.88
7.2.80.0000.01916.90
7.2.70.0110.00316.72
7.2.60.0060.00516.80
7.2.50.0040.01116.91
7.2.40.0030.01016.93
7.2.30.0100.00716.60
7.2.20.0070.00316.90
7.2.10.0050.00816.89
7.2.00.0120.00416.95
7.1.330.0070.00715.79
7.1.320.0110.00315.78
7.1.310.0040.01015.48
7.1.300.0050.00715.62
7.1.290.0060.00815.69
7.1.280.0040.00915.57
7.1.270.0060.00515.63
7.1.260.0070.00615.54
7.1.250.0040.01115.80
7.1.240.0000.01415.91
7.1.230.0000.00915.78
7.1.220.0040.00415.78
7.1.210.0120.00015.56
7.1.200.0020.01115.67
7.1.190.0000.01015.62
7.1.180.0040.00415.85
7.1.170.0040.00815.73
7.1.160.0070.00715.64
7.1.150.0030.00715.72
7.1.140.0090.00615.75
7.1.130.0060.00315.75
7.1.120.0030.00615.63
7.1.110.0000.00915.63
7.1.100.0000.01015.71
7.1.90.0000.01415.89
7.1.80.0000.01315.76
7.1.70.0030.01016.21
7.1.60.0080.01017.62
7.1.50.0050.01316.21
7.1.40.0090.00315.34
7.1.30.0050.00515.73
7.1.20.0040.01215.75
7.1.10.0100.00715.71
7.1.00.0060.03219.01
7.0.330.0040.00715.24
7.0.320.0030.00515.30
7.0.310.0090.00615.29
7.0.300.0040.01115.27
7.0.290.0060.00915.44
7.0.280.0030.01015.42
7.0.270.0090.00315.36
7.0.260.0080.00815.50
7.0.250.0060.00315.08
7.0.240.0000.01515.31
7.0.230.0030.01415.44
7.0.220.0100.00615.34
7.0.210.0070.00415.29
7.0.200.0020.00915.86
7.0.190.0000.01615.30
7.0.180.0030.00715.16
7.0.170.0070.00315.10
7.0.160.0040.00715.11
7.0.150.0000.01415.44
7.0.140.0070.03818.66
7.0.130.0030.00515.27
7.0.120.0000.01115.42
7.0.110.0000.01515.35
7.0.100.0040.00815.24
7.0.90.0000.01215.52
7.0.80.0030.00915.17
7.0.70.0070.01015.25
7.0.60.0040.04517.59
7.0.50.0090.04216.58
7.0.40.0030.03615.63
7.0.30.0100.03715.74
7.0.20.0060.03315.46
7.0.10.0050.04715.62
7.0.00.0080.02815.62
5.6.400.0000.01513.92
5.6.390.0030.01014.03
5.6.380.0060.00314.46
5.6.370.0100.00714.37
5.6.360.0030.01014.02
5.6.350.0070.00714.14
5.6.340.0060.00914.16
5.6.330.0090.00614.16
5.6.320.0000.01114.15
5.6.310.0070.00714.30
5.6.300.0040.01014.29
5.6.290.0070.01013.86
5.6.280.0040.03917.41
5.6.270.0130.00313.93
5.6.260.0070.00714.26
5.6.250.0060.00614.30
5.6.240.0030.01014.14
5.6.230.0090.00314.08
5.6.220.0040.01414.36
5.6.210.0110.04117.61
5.6.200.0030.02516.33
5.6.190.0080.03816.30
5.6.180.0030.02616.17
5.6.170.0110.04316.10
5.6.160.0110.04016.14
5.6.150.0060.03516.21
5.6.140.0110.03616.21
5.6.130.0030.02816.22
5.6.120.0020.03416.30
5.6.110.0040.04816.23
5.6.100.0050.02516.16
5.6.90.0080.03516.12
5.6.80.0110.02115.85
5.6.70.0080.03315.90
5.6.60.0030.04715.82
5.6.50.0050.03215.80
5.6.40.0050.04315.80
5.6.30.0120.03215.80
5.6.20.0070.02915.67
5.6.10.0050.03015.94
5.6.00.0070.02215.81
5.5.380.0070.01014.20
5.5.370.0070.01014.20
5.5.360.0030.01114.06
5.5.350.2100.02217.10
5.5.340.0030.02615.86
5.5.330.0110.04016.22
5.5.320.0100.04315.88
5.5.310.0070.03616.26
5.5.300.0080.03416.14
5.5.290.0080.02716.21
5.5.280.0080.04216.05
5.5.270.0070.03216.11
5.5.260.0100.03815.99
5.5.250.0100.04615.95
5.5.240.0080.03515.79
5.5.230.0070.02515.65
5.5.220.0030.03215.77
5.5.210.0070.02715.63
5.5.200.0080.04315.62
5.5.190.0030.04815.55
5.5.180.0050.04915.59
5.5.170.0090.00314.01
5.5.160.0050.03915.75
5.5.150.0030.02315.61
5.5.140.0050.03115.81
5.5.130.0090.03215.54
5.5.120.0030.03115.66
5.5.110.0050.03715.60
5.5.100.0080.02515.64
5.5.90.0080.02115.71
5.5.80.0040.03015.72
5.5.70.0050.02315.73
5.5.60.0050.03115.61
5.5.50.0050.02415.48
5.5.40.0000.03115.66
5.5.30.0020.02615.81
5.5.20.0080.02115.54
5.5.10.0050.02415.79
5.5.00.0050.02315.63
5.4.450.0020.03015.72
5.4.440.0020.03815.71
5.4.430.0030.03315.64
5.4.420.0070.02315.64
5.4.410.0080.04015.63
5.4.400.0080.03815.63
5.4.390.0050.04215.48
5.4.380.0020.04815.43
5.4.370.0080.04215.50
5.4.360.0010.02915.54
5.4.350.0130.03515.47
5.4.340.0090.03715.50
5.4.330.0040.00711.98
5.4.320.0140.02315.55
5.4.310.0030.03715.52
5.4.300.0050.02615.54
5.4.290.0140.03415.54
5.4.280.0040.03315.51
5.4.270.0030.02915.48
5.4.260.0020.04015.62
5.4.250.0040.02415.55
5.4.240.0070.01915.51
5.4.230.0040.02415.54
5.4.220.0060.03015.51
5.4.210.0030.02515.51
5.4.200.0080.02815.50
5.4.190.0050.02315.53
5.4.180.0070.04315.62
5.4.170.0060.01915.51
5.4.160.0030.02515.50
5.4.150.0070.02315.49
5.4.140.0050.04014.18
5.4.130.0050.02214.27
5.4.120.0060.01814.18
5.4.110.0030.03414.18
5.4.100.0080.03714.31
5.4.90.0030.03814.28
5.4.80.0080.02214.28
5.4.70.0100.03414.17
5.4.60.0020.03314.18
5.4.50.0040.04114.22
5.4.40.0090.03214.29
5.4.30.0010.03114.17
5.4.20.0030.04014.13
5.4.10.0120.03314.18
5.4.00.0050.03013.92
5.3.290.0030.03313.30
5.3.280.0020.03313.21
5.3.270.0030.02513.31
5.3.260.0010.02413.30
5.3.250.0040.02613.40
5.3.240.0030.02213.30
5.3.230.0020.02513.32
5.3.220.0050.02313.29
5.3.210.0070.01813.28
5.3.200.0070.03013.25
5.3.190.0070.04213.30
5.3.180.0060.02813.21
5.3.170.0020.02613.30
5.3.160.0060.04413.27
5.3.150.0070.03113.18
5.3.140.0030.04013.25
5.3.130.0070.02613.28
5.3.120.0050.02713.28
5.3.110.0020.03013.27
5.3.100.0100.03713.04
5.3.90.0030.02312.99
5.3.80.0100.03513.03
5.3.70.0020.03013.02
5.3.60.0030.04112.99
5.3.50.0090.02313.00
5.3.40.0050.03912.91
5.3.30.0000.04012.94
5.3.20.0020.04512.86
5.3.10.0020.04012.84
5.3.00.0050.03812.75
5.2.170.0070.06011.11
5.2.160.0070.06011.05
5.2.150.0100.03311.12
5.2.140.0030.04011.19
5.2.130.0070.06011.00
5.2.120.0130.05311.14
5.2.110.0030.03711.00
5.2.100.0030.05011.16
5.2.90.0070.04011.16
5.2.80.0070.02710.98
5.2.70.0030.06311.16
5.2.60.0100.06011.05
5.2.50.0070.03711.03
5.2.40.0030.05710.84
5.2.30.0070.03710.82
5.2.20.0070.04310.91
5.2.10.0030.05010.92
5.2.00.0000.03710.79
5.1.60.0030.0279.97
5.1.50.0070.05010.04
5.1.40.0000.0479.96
5.1.30.0100.03310.36
5.1.20.0070.05010.37
5.1.10.0000.04310.05
5.1.00.0100.05010.10
5.0.50.0030.0378.59
5.0.40.0030.0378.57
5.0.30.0070.0538.57
5.0.20.0030.0478.57
5.0.10.0030.0278.57
5.0.00.0030.0578.57
4.4.90.0030.0208.57
4.4.80.0030.0178.57
4.4.70.0000.0208.57
4.4.60.0030.0338.57
4.4.50.0070.0338.57
4.4.40.0030.0538.57
4.4.30.0000.0378.57
4.4.20.0030.0378.57
4.4.10.0000.0208.57
4.4.00.0030.0438.57
4.3.110.0070.0308.57
4.3.100.0130.0138.57
4.3.90.0030.0338.57
4.3.80.0030.0578.57
4.3.70.0030.0338.57
4.3.60.0030.0238.57
4.3.50.0070.0178.57
4.3.40.0030.0508.57
4.3.30.0000.0378.57
4.3.20.0000.0378.57
4.3.10.0070.0178.57
4.3.00.0030.0338.57

preferences:
40.92 ms | 401 KiB | 5 Q